Custom errors not working with IISExpress

后端 未结 2 1941
感情败类
感情败类 2020-12-09 17:48

I have a asp.net mvc application and am trying to get custom errors working with IISExpress.

Works in Casini fine:



        
2条回答
  •  余生分开走
    2020-12-09 18:25

    If you are using iisexpress you can just comment out the entire httpErrors section < !-- --> in the applicationhost.config and replace it with the following:

    
        
    
    

    path is the url path to your custom site specific page

提交回复
热议问题