How to prevent “aspxerrorpath” being passed as a query string to ASP.NET custom error pages

后端 未结 11 880
夕颜
夕颜 2020-12-29 03:36

In my ASP.NET web application, I have defined custom error pages in my web.config file as follows:



        
11条回答
  •  生来不讨喜
    2020-12-29 03:56

    If you remove aspxerrorpath=/ and you use response redirect during error handling you'll get exception there will be redirection loop.

提交回复
热议问题