In ASP.Net, if I set up a web application I can configure it to be in release mode but with a website I can only set the configuration to be in debug mode. Why is this?
+5
A:
In web site projects each page is compiled dynamically upon first request. It will compile without debugging symbols unless you specify otherwise in the config file.
Peter J
2009-02-13 17:44:55
"each page is compiled dynamically for each page." Do you mean each page is compiled per REQUEST?
Outlaw Programmer
2009-02-13 17:47:00
No, each deployment.
Joel Coehoorn
2009-02-13 17:48:10
Thanks Outlaw...fixed the grammar.
Peter J
2009-02-13 17:51:43
A:
Probably because a Web Application compiles the whole website into one DLL. To run and debug pages requires recompiling the entire application. Whereas a website project compiles dynamically at the page level.
GregD
2009-02-13 17:46:59
A:
For websites one releases the source code to the site, there is no build to be done.
The code is built on site.
AnthonyWJones
2009-02-13 17:48:09
+2
A:
A Web Site's debug/release is controlled by the Web.Config file:
<system.web>
...
<compilation debug="true">
...
</compilation>
</system.web>
Set debug="true" for debugging, set debug="false" for release.
Redbeard 0x0A
2009-02-13 18:15:52