Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 403.8 - Forbidden"


Symptoms


When you visit a Web site that is hosted on Internet Information Services (IIS) 7.0, you receive an error message that resembles the following:
Server Error in Application "Application_Name"
HTTP Error 403.8 - Forbidden
HRESULT: 0x80070005
Description of HRESULT
Access is denied.

Cause


This issue occurs because the Web site is configured to explicitly deny requests from the client computer. IIS explicitly denies the requests by checking the DNS name of the client computer.

Resolution


To resolve this issue, follow these steps:
  1. In a text editor, open the ApplicationHost.config file.

    The ApplicationHost.config file is in the following folder:
    %SystemRoot%\system32\inetsrv\config
  2. Locate the ipSecurity XML element.
  3. Under the ipSecurity XML element, set the value of the allowed property of the domainName XML element for the client computer to true:
    <add domainName="Client_Computer" allowed="true" />