How to turn custom errors off when deploying to azure in debug mode only
asp.net, azure
Solution
From Visual Studio 2015, for an "App Service", open Server Explorer and navigate to Azure -> App Service -> {resource group name} -> {app service name} -> Files -> Web.config.
At this point, you can edit the Web.Config file directly and save it - no publish required.
Problem
I am working on a site where we use Web.Debug.config with transform XSLT to turn custom errors off ``` <customErrors mode="Off" xdt:Transform="Replace"/>` ``` However this doesn't seem to be taken into consideration when deploying to azure. From Azure web.config per environment I can see that azure uses .cscfg files, and that what I am trying to accomplish will probably involve these files? What is the simplest way to turn custom errors off when deploying to azure but only when in debug?