次の方法で共有


Turn off Debug=true Please!

I always knew that debug=true in the web config of an ASP.NET project was bad karma.  However, this article explains just how bad it is when you are moving into production with a web application with regard to performance.  It will scare you with things like each page getting compiled into a separate assembly (no batch compile), no ASP.NET request timeouts, and general overhead.  But what if you can't remember to set debug=false on your web.config before/after deployment?  You can adjust a setting in the machine.config (deployment retail = "true") to allow it to override the debug=true setting in all ASP.NET applications on the machine (I don't generally like editing machine.config, but I might make an exception in this case). 

https://blogs.msdn.com/tess/archive/2006/04/13/575364.aspx