tags:

views:

63

answers:

0

Hi

I want to precompile my website, so I do the following:

  • On the server I open a command prompt as an administrator with no restricted access

  • I navigate to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\

  • I type the following:
    aspnet_compiler -f -v / –p d:\website-source d:\website-compiled

Then I get this error:
error 1001: Unexpected parameter: 'd:\website-source'.

The directory exists so this is not the error.
The source website is set up properly in IIS and this website works fine, so it is not because there is an error in the code.
I can precompile the site through Visual Studio, but I need to be able to precompile it through aspnet_compiler.

What am I doing wrong?

Thanks in advance