ASP.NET Application hosted on IIS7 that is ignoring custom errors and falls back to IIS errors

前端 未结 3 1486
死守一世寂寞
死守一世寂寞 2020-12-06 05:44

I have a C# web forms ASP.NET 4.0 web application that uses Routing for URLs for some reason custom errors defined in the system.web section of my web.config is entirely ign

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 06:24

    Instead of using:

    Response.TrySkipIisCustomErrors = true;
    

    Use this in Web.config:

    
    

提交回复
热议问题