lushixiong

我们可以通过配置Web.config让应用程序不管在何时何地引发了异常都可以显示统一的友好错误信息。在Web.config文件中的<system.web>节点下添加如下子节点:

  <system.web>
    
    ...
    <customErrors mode="On" defaultRedirect="/Content/RangeErrorPage.html"/>
  </system.web>

分类:

技术点:

相关文章:

  • 2021-08-08
  • 2021-11-18
  • 2021-08-20
  • 2021-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-10-17
  • 2021-12-08
相关资源
相似解决方案