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


Symptoms


You have a Web site that is hosted on Internet Information Services (IIS) 7.0. When you visit the Web site, you may receive an error message that resembles the following:
Server Error in Application "<application name>"
--------------------------------------------------------------------------------
HTTP Error 403.2 - Forbidden
HRESULT: 0x80070005
Description of HRESULT: You have attempted to view a resource that does not have Read Access

Cause


Cause 1

This problem occurs because the requested resource is not configured for read access. To resolve this problem, see Resolution 1.

Cause 2

This problem occurs because the handler that is configured for the requested resource does not have the Read permission. Additionally, the allowed verbs are in the incorrect format. To resolve this problem, see Resolution 2.

Resolution


Resolution 1

To resolve this problem, follow these steps:
  1. Click Start, type Inetmgr in the Start Search box, and then click Inetmgr in the Programs list.


    If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
  2. In IIS Manager, expand server name, expand Web sites, and then click the Web site that you want to modify.
  3. In Features view, double-click Handler Mappings.
  4. In the Actions pane, click Edit Handler Permissions.
  5. Click to select the Read check box, and then click OK.

Resolution 2

To resolve this problem, follow these steps:
  1. Click Start, type Inetmgr in the Start Search box, and then click Inetmgr in the Programs list.


    If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
  2. In IIS Manager, expand server name, expand Web sites, and then click the Web site that you want to modify.
  3. In Features view, double-click Handler Mappings.
  4. On the Handler Mappings page, click the handler that is configured for the requested resource, and then click Edit Handler Permissions in the Actions pane.
  5. Click to select the Read check box, and then click OK.
  6. On the Handler Mappings page, click the handler that is configured for the requested resource, and then click Edit in the Actions pane.
  7. On the Verbs tab, make sure that the HTTP verbs are separated by commas in the One of the following verbs box.

    For example, make sure that the HTTP verbs resemble the following HTTP verbs:
    GET, POST