PRB: Unable to Access Web Project - Access Forbidden Error
ID: Q175800
|
The information in this article applies to:
-
Microsoft Visual InterDev, version 1.0
SYMPTOMS
The following error occurs when trying to preview a Web site:
HTTP/1.0 403 Access Forbidden error.
CAUSE
This error is typically caused by either a misnamed document or permissions
settings.
RESOLUTION
Misnamed Document
Make sure that the Default.htm or Default.asp file names are listed in the
Default Document edit box located under the Directories tab in the
properties sheet for the WWW service of the Internet Information Service
Manager. More than one type of default page can be listed by including
additional names separated by a comma and space (Default.htm, Default.asp,
Test.asp, and so forth).
Incorrect Permissions
Make sure directories containing ASP files have Execute permissions. To
check Execute permissions open the Internet Service Manager and double-
click the WWW Service. Scroll to the directory in question and click
Properties. Under Access select the "Execute" option. Directories
containing script files, such as ASP files, need Execute permissions to
run, but for security reasons should not have Read permissions (if a
directory containing an ASP file has Read permissions but not Execute, when
the ASP file is requested by the Web client the ASP script code will be
displayed in the browser). Directories containing HTML files should have
Read permissions.
STATUS
This behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
Misnamed Document:
- Create or open an existing Web project in Visual InterDev.
- Rename the Default.asp or Default.htm to a name not listed as one of the
Default Documents in Internet Information Service Manager.
- Save the renamed file and preview the project in the browser.
Execute Permissions:
- Open Internet Service Manager.
- Select the Directories tab.
- Scroll a directory containing ASP files and open the Properties dialog
box.
- Clear Execute permissions for the directory in question.
- Attempt to browse the ASP page in the directory without Execute
permissions.
NOTE: If the directory contains ASP pages and has only Read permissions,
the ASP code will be displayed in the browser.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
http://support.microsoft.com/support/vinterdev/
Additional query words:
Keywords : kberrmsg kbASP kbVisID kbVisID100 kbWebServer kbGrpASP VIServer
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 11, 1999