HttpError iis config throws exception when default path is added

后端 未结 4 1872
失恋的感觉
失恋的感觉 2020-12-16 19:39

I have this config which works and redirects the following errors correctly



        
4条回答
  •  隐瞒了意图╮
    2020-12-16 20:37

    Using of defaultPath attribute prevents using of path attribute in your error nodes. So below configuration will work (but of course it will show the same error page for all HTTP errors defined here):

    
      
      
      
      
      
      
    
    

    Related doc: https://msdn.microsoft.com/en-us/library/ms690576(v=vs.90).aspx

提交回复
热议问题