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

后端 未结 11 879
夕颜
夕颜 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:43

    My first thought would be to create a HttpHandler which catches url's with aspxerrorpath in it, and strips it. You could probably do the same with the rewrite module in IIS7 as well.

提交回复
热议问题