Thursday, March 6, 2008

Why do I get the error "Directory Listing Denied" when attempting to view my webpage?

If you get the following error, Default Documents needs to be configured, or Directory Browsing needs to be enabled for the directory.

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
Your main (index) page should usually be named "index.htm", "index.html", or "default.htm". If one of these files exists, and you're still getting the error, check the following:
Open Internet Information Services (IIS) Manager.
Expand the respective web site.
Right-click on the directory that is giving this error (if it's the main URL, just right-click on the web site), select Properties.
Select the Documents tab, check the box for "Enable default content page"
Click the Add button, and add the index page that you're trying to browse to.

No comments: