Questions tagged [web-debug-config]

Web.Debug.config is an XML transform file that specifies how the Web.config file should be changed when it is deployed in Debug mode.

Web.Debug.config is an XML transform file that specifies how the Web.config file should be changed when it is deployed in Debug mode.



EXAMPLE 1

In the example below, the SetAttributes transform will change the value of the connectionString attribute to use ReleaseSQLServer only when the Match locator finds an attribute name that has a value of MyDB.

<connectionStrings>

    <add connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
         name="MyDB"
         xdt:Locator="Match(name)"
         xdt:Transform="SetAttributes" />

</connectionStrings>



EXAMPLE 2

In the example below, the Replace transform will replace the entire <customErrors> node of your Web.config file with what's below.

Note that because there is only one <customErrors> node under the <system.web> node, there is no need to use the xdt:Locator attribute.

<customErrors defaultRedirect="GenericError.htm"
              mode="RemoteOnly" 
              xdt:Transform="Replace">

    <error redirect="InternalError.htm"
           statusCode="500" />

</customErrors>



For more information visit:

Web.config Transformation Syntax for Web Application Project Deployment

3 questions
6
votes
2 answers

Why am I receiving the required attribute 'name' is missing warning in my Web.Release.config XML-Document-Transform file?

I'm trying to remove all service endpoint mexHttpBinding nodes in my Web.Release.config file. I found this answer: (I copied from my code file, so it's actually formatted differently than the answer )
1
vote
1 answer

Has the XML-Document-Transform xmlns URL changed?

In your Web.Release.config or Web.Debug.config, right after ... you see ... When I browse to this URL, I receive the following…
0
votes
1 answer

How to transfer the Android Studio debug configuration to VS Code debug for Flutter

I need to transfer this configuration to the visual file 'launch.json,' but it's not working when I edit the parameters, and the startup parameters are not specifically listed either. Android Studio | Debug config VS Code | Debug config I already…