http://aspnetresources.com/articles/debug_code_in_production.aspx
Even though the article referred to Framework 1.1 but it looks like it is still applicable for Framework 2.0, 3.0 and 3.5.
Some of my key take aways from the article are:
- When deploying an application, it is critical to remember to change the debug to false.
- Frequent changes on the aspx files will also generate additional files which will only be removed when the application is restarted or the web.config is edited.
- Too many aspx files in a folder will incur high start up time, since compilation happens to many files even though only one is accessed.
<compilation debug="false" />There are a lot more information there and I believe is critical for developers too.
Side Note
On the server (hosting your application), you should always configure your antivirus not to scan your web.config, global.asax and global.asa. From my experience:
- the act of the antivirus scanning will cause IIS to detect those as changes to those files and will force a restart on the applications.
- And the very act of accessing any of those pages, will cause the antivirus to scan those files.
No comments:
Post a Comment