AspxErrorPath in Custom Error Page

前端 未结 3 1359
执笔经年
执笔经年 2021-01-12 00:30

We currently has a page that is used to display a generic error message when errors occur on our website. It has no functionality at all other than displaying a label that m

3条回答
  •  春和景丽
    2021-01-12 00:33

    As a quick-fix, I've found that appending "?" onto the end of the defaultRedirect setting worked for me in removing the aspxerrorpath.

    Also, I was getting the same issue with the customErrors settings in system.web, and the same solution worked:

    
       
       
    
    

    Alternatively, do the same on system.webServer settings:

    
       
       
       
        
    
    

提交回复
热议问题