HttpError iis config throws exception when default path is added

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

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



        
4条回答
  •  天命终不由人
    2020-12-16 20:20

    You cannot override httpErrors "defaultPath" attribute in IISExpress because of applicationhost.config locked that attribute:

    
    

    You can read more about it here: https://support.microsoft.com/en-us/kb/942055 This problem can occur:

    when the specified portion of the IIS configuration file is locked at a higher configuration level. To resolve this problem, unlock the specified section, or do not use it at that level. For more information on configuration locking, see How to Use Locking in IIS 7.0 Configuration.

提交回复
热议问题