If using Web Services in an ASP.NET application, having debug mode set to true will cause the files that are streamed by webresource.axd to be repeatedly downloaded since they will not be cached. In order to prevent an application from being uploaded to the server with debug mode set to true, follow the steps below.
1. Find your machine.config file for .NET framework. example: C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
2. Edit the following in the machine config file
<configuration>
<system.web>
<deployment retail=”true”/>
</system.web>
</configuration>
That's it, all applications that are loaded onto that server will be forced to have debug mode set to false.
0 comments:
Post a Comment