Microsoft KB Archive/942065

= Error message when you visit a Web site that is hosted on IIS 7.0: &quot;HTTP Error 403.1 - Forbidden&quot; =

Article ID: 942065

Article Last Modified on 10/4/2007

-

APPLIES TO


 * Microsoft Internet Information Services 7.0

-



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 &quot; &quot;

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 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.
 * 1) In IIS Manager, locate the level that you want to manage.
 * 2) In Features view, double-click Handler Mappings.
 * 3) In the Action pane, click Edit Handler Permissions.
 * 4) For Cause 1, click to select Script, and then click OK.

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

Keywords: kbexpertiseadvanced kbtshoot kbprb KB942065

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.