.Net go live checklist


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. 1. <compilation debug="false">. This reduces overhead and increases performance and caching.
  2.  
  3. 2. Turn on custom errors via <customErrors mode="on" or remoteOnly.
  4.  
  5. 3. Disable or at least limit tracing info. <trace mostRecent="true" enabled="true" requestLimit="1000" pageOutput="false" localOnly="true"/>
  6.  
  7. Alternatively, this can be put in the machine config to enforce all the above for all sites on the server:
  8. <configuration>
  9. <system.web>
  10. <deployment retail="true"
  11. </system.web>
  12. </configuration>
  13.  
  14. 4. Enable Error logging. Elmah works great and is easy to integrate.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.