I have sometimes been unable to precompile ASP.NET web projects using the built in function of Visual Studio. In these cases I use the following command line to manually precompile ASP.NET 2.0 projects:
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe
-p . -v / c:\myprecompiledwebsite -u
all posts