Advertisement
Guest User

Web.Debug.config

a guest
Apr 10th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.38 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
  4.  
  5. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  6.   <add key="MarkTest"
  7.           value="Debugging"
  8.           xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
  9.  
  10.   <!--
  11.    In the example below, the "SetAttributes" transform will change the value of
  12.    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
  13.    finds an atrribute "name" that has a value of "MyDB".
  14.    
  15.    <connectionStrings>
  16.      <add name="MyDB"
  17.        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
  18.        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
  19.    </connectionStrings>
  20.  -->
  21.   <system.web>
  22.     <!--
  23.      In the example below, the "Replace" transform will replace the entire
  24.      <customErrors> section of your web.config file.
  25.      Note that because there is only one customErrors section under the
  26.      <system.web> node, there is no need to use the "xdt:Locator" attribute.
  27.      
  28.      <customErrors defaultRedirect="GenericError.htm"
  29.        mode="RemoteOnly" xdt:Transform="Replace">
  30.        <error statusCode="500" redirect="InternalError.htm"/>
  31.      </customErrors>
  32.    -->
  33.   </system.web>
  34. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement