ASP.Net ScriptManager globally configures ScriptMode in Machine.Config

All our applications have Debug = "False" in the web.config and Release DLL files.

We have a number of applications that now use ScriptManagers to implement .net Ajax. ScriptManager has a ScriptMode that is configured for Release and Debug modes. By default, this parameter is set to "Auto", and if it is set to "Auto", its value is set based on the parameter "Deployment - Retail =" True "in Machine.Config.

I have never set this flag on any of our Live Production servers and therefore do not want to just do it!

My questions:

  • Does anyone have any info on setting this flag?
  • Is this the only way to globally install ScriptManagers ScriptMode for release? I would happily just install it in Web.Config instead.
  • What problems can arise if I set this flag on a production server?
+3
source share
1 answer

Setting <deployment retail = "true" /> in machine.config is almost always a good idea for production servers. It will override some settings for web.config, banning:

  • <compilation debug = "true" /> switch
  • page output trace
  • non-local access to detailed error messages

ScottGu: ASP.NET debug = "true"

- , , QA.

+3

Source: https://habr.com/ru/post/1720467/


All Articles