Hi Alex,
Thanks for posting.
As for ASP.NET 2.0 web applications, the page's codebehind classes and
other source files(in App_Code) and components(DataSet or localization
resource) are dynamically compiled, and the build type (debug or release)
is specified by the web.config's <compilation debug="xxx" /> attribute. And
this is the same when we manually precompile the web application through
aspnet_compiler tool. If use the "Publish WebSite" menu in VS 2005 ide, it
will force a release build, however , if you choose the "updatalbe" option,
at runtime our aspx pages's dynamic classes will still be compiled as the
version specified in web.config file. The difference between "updatable"
and "non-updatable" is that "updatable" make the web pages partially
precompiled, there still require some dynamic compilation at runtime for
each page. While "non-updatable" make a full precompilation so that pages
do not need additional dynamic compilation at runtime.
Therefore, it is always recommended that we change the <compilation
debug="xxx" /> to the corretly value before we perform precompilation for
deployment. In addition, here is a good web article discussing on this:
#Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)