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

Article translations Article translations
Article ID: 942065 - View products that this article applies to.
Expand all | Collapse all

On This Page

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.1 - Forbidden
HRESULT: 0x80070005
Description of HRESULT: You have attempted to run a CGI, ISAPI or other executable program from a directory that does not allow executables to run.

CAUSE

Cause 1

This problem occurs because the appropriate script handler permission is not set for the directory where the requested resource resides. For example, this problem occurs if you try to request an ASP page from a directory that does not have the scripts handler permission enabled.

Cause 2

This problem occurs because the appropriate executable handler permission is not set for the directory where the requested resource resides. For example, this problem occurs if you try to request a CGI application from a directory that does not have the execute handler permission enabled.

RESOLUTION

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

    If you are prompted for an administrator password or for a confirmation, type your password, or click Continue.
  2. In IIS Manager, locate the level that you want to manage.
  3. In Features view, double-click Handler Mappings.
  4. In the Action pane, click Edit Handler Permissions.
  5. For Cause 1, click to select Script, and then click OK.

    For Cause 2, click to select Execute, and then click OK.

Properties

Article ID: 942065 - Last Review: October 4, 2007 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 7.0
Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB942065

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com