500.19 error in IIS7 when an error occurs

后端 未结 4 1219
天命终不由人
天命终不由人 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条回答
  • 2021-02-05 10:02

    What helped me to resolve this error is setting allowAbsolutePathsWhenDelegated to true.

    Go to IIS > Configuration Editor > in Section type: system.webServer/httpErrors and Set allowAbsolutePathsWhenDelegated to true. Reset IIS for good measure.

    0 讨论(0)
  • 2021-02-05 10:06

    I had the same problem when I installed Active Directory Certificate Services on the domain controller. Both of them were using port 443. I change the one for certificate services to the server IP Address and left the exchange server unassigned. That solved my problem.

    0 讨论(0)
  • 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:

      <httpErrors allowAbsolutePathsWhenDelegated="true" errorMode="Custom" 
                  lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath">
      
    0 讨论(0)
  • 2021-02-05 10:09

    I had this same issue in IIS 8.5. The fix was to delete any entries in the web.config file (located in the root directory of the website) that referenced the custom error pages. The entries were created by the system when I had attempted to make changes to custom pages.

    0 讨论(0)
提交回复
热议问题