Web.Debug.config 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- For more information on using Web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=301874 -->
  3. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  4. <!--
  5. 在下例中,“SetAttributes”转换将更改
  6. “connectionString”的值,仅在“Match”定位器找到值为“MyDB”的
  7. 特性“name”时使用“ReleaseSQLServer”。
  8. <connectionStrings>
  9. <add name="MyDB"
  10. connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
  11. xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
  12. </connectionStrings>
  13. -->
  14. <system.web>
  15. <!--
  16. 在以下示例中,"Replace" 转换将替换 Web.config 文件的
  17. 整个 <customErrors> 节。
  18. 请注意,由于在 <system.web> 节点下只有一个
  19. customErrors 节,因此无需使用 "xdt:Locator" 属性。
  20. <customErrors defaultRedirect="GenericError.htm"
  21. mode="RemoteOnly" xdt:Transform="Replace">
  22. <error statusCode="500" redirect="InternalError.htm"/>
  23. </customErrors>
  24. -->
  25. </system.web>
  26. </configuration>