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

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

    Add redirectMode="ResponseRewrite" in the Custom Error like this,

    
         
    
    

    this solution works for me.

提交回复
热议问题