Web.Config 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0"?>
  2. <!--
  3. 注意: 除了手动编辑此文件以外,您还可以使用
  4. Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
  5. “网站”->“Asp.Net 配置”选项。
  6. 设置和注释的完整列表在
  7. machine.config.comments 中,该文件通常位于
  8. \Windows\Microsoft.Net\Framework\v2.x\Config 中
  9. -->
  10. <configuration>
  11. <appSettings/>
  12. <connectionStrings/>
  13. <system.web>
  14. <!--
  15. 设置 compilation debug="true" 将调试符号插入
  16. 已编译的页面中。但由于这会
  17. 影响性能,因此只在开发过程中将此值
  18. 设置为 true。
  19. -->
  20. <compilation debug="true"/>
  21. <!--
  22. 通过 <authentication> 节可以配置 ASP.NET 使用的
  23. 安全身份验证模式,
  24. 以标识传入的用户。
  25. -->
  26. <authentication mode="Windows"/>
  27. <!--
  28. 如果在执行请求的过程中出现未处理的错误,
  29. 则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
  30. 开发人员通过该节可以配置
  31. 要显示的 html 错误页
  32. 以代替错误堆栈跟踪。
  33. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  34. <error statusCode="403" redirect="NoAccess.htm" />
  35. <error statusCode="404" redirect="FileNotFound.htm" />
  36. </customErrors>
  37. -->
  38. </system.web>
  39. </configuration>