Help - Problems precompiling ASP.NET 2.0 website  
Author Message
Sasco





PostPosted: Visual Studio Team System - General, Help - Problems precompiling ASP.NET 2.0 website Top

I am trying to precompile a fairly simple ASP.NET 2.0 website to improve performance. I got all the website files on the target webserver and it runs fine when accessed by a browser (although pages load slow, which is why I want to precompile).

I logged into the host server with Admin rights and ran the following from a DOS command line:

C:\windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v -p d:\wwwroot\MyApp

This gives the following error:
error ASPRUNTIME: '/-p' is not a valid IIS application.
It appears to not recognize the -p arguement. Taking off the -v arguement results in a 'Either -m or -v must be specified' error.

If I try using the virtual path only:
C:\....\aspnet_compiler -v /MyApp

Then it appears to try to compile, but I get a bunch of warnings about project files in the website folder conflicting with the 'imported type' of the file created in the 'Temporary ASP.NET Files' folder each time I compile (I have tried clearing these out, it just recreates them and gives the same error).

The other odd thing in this case is even though all of the warnings appear to be just warnings (no errors), the compiler never gives me a final summary of what happened (no 'complete' or 'failed' message at the end). After the scrolling list of warnings, it just goes back to the line prompt without saying if the compile had succeeded or failed.

Can anybody tell me what the issue is here Thanks.



Visual Studio Team System11  
 
 
Carl Daniel





PostPosted: Visual Studio Team System - General, Help - Problems precompiling ASP.NET 2.0 website Top

ASP.NET questions should be posted to the forums at http://forums.asp.net