Can you specify if aspnet_compiler.exe creates a debug or release build?-Collection of common programming errors
One key point is that there are two completely different ways to precompile a site: in-place, or for deployment. If your goal is simply to make startup faster, then precompiling in-place makes more sense. Not clear whether that’s already what you are doing.
You can run aspnet_compiler -? to get examples. In-place simply looks like this:
aspnet_compiler -v /MyApp
That it, it doesn’t create a new deployment folder. Instead, it basically acts as if all the pages in your site are being requests, so that they won’t have to be compiled at runtime.
As far as debug mode, there is no difference between in-place precompilation and regular runtime. That is, it honors the standard web.config flag, as well as the debug flag in aspx pages. So if you change the flag in config after precompilation, the site will be recompiled at runtime (unless you run aspnet_compiler again!)