Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<compilation debug="true"> in precompiled asp.net website - Does it matter?

I'm deploying a precompiled and all-page-merged website using Web Deployment Projects on Visual Studio 2008. Note that all assemblies and projects have been compiled in Release mode.

All my pages are pre-compiled in release mode. So they wont be recompiled, they'll just be loaded by runtime. In that case when the page compilation is not required, Setting <compilation debug="true"> in system.web will make any difference ?

like image 441
this. __curious_geek Avatar asked Apr 29 '09 09:04

this. __curious_geek


People also ask

What is precompiledApp config?

precompiledApp. config file it will look into it and determine whether or not to still compile the ASPX files since they could be allowed to be updatable. – Keith Adler. Sep 22, 2009 at 16:33.

How to compile website in Visual Studio?

Open the Book Review WSP in Visual Studio, go to the Build menu, and select the Publish Web Site menu option. This launches the Publish Web Site dialog box (see Figure 1), where you can specify the target location, whether or not the precompiled site's user interface is updatable, and other compiler tool options.


1 Answers

Check out the excellent links below:

  • ASP.NET Memory: If your application is in production… then why is debug=true
  • Don’t run production ASP.NET Applications with debug=”true” enabled

Basically:

  • Your code will run slower because of the overhead of debugging support.
  • Scripts and images are not cached on the client side because you don't want things to be cached in development if you're constantly making changes and debugging.
  • Requests are not timed out. Again when you're debugging your code, you don't want to get a request timeout.

None of the above is desirable. You will find more disadvantages in the above links.

like image 167
Mehmet Aras Avatar answered Sep 19 '22 18:09

Mehmet Aras