500.19 error in IIS7 when an error occurs

后端 未结 4 1220
天命终不由人
天命终不由人 2021-02-05 09:14

Setup: Windows 7, IIS7. I am working on an app that is being viewed through the local IIS server, not the built in debugging web server. So my app url is http://localhos

4条回答
  •  -上瘾入骨i
    2021-02-05 10:09

    I've been dealing with this issue for the last few days and found the solution. A Web.Config file is likely specifying an absolute path for one of the error pages. This may not be the Web.Config of the application you are testing. For me, it was the website's Web.Config file.

    1. If you find the offending Web.Config file you can remove the absolute path and the problem should be fixed.

    2. A much easier solution would be to alter your ApplicationHost.Config file to set the allowAbsolutePathsWhenDelegated property to true:

      
      

提交回复
热议问题