Sitefinity ASP.NET CMS - Content Management System

Support Forum Thread

Home >  Support >  Forums home > Sitefinity 3.x > Deployment > Directory listing denied

Reply
jimmy, 4/29/2008 10:14:45 AM
I have sitefinity set up, but when I go to the root folder it displays the following error:

Error

Directory Listing Denied



This Virtual Directory does not allow contents to be listed.


If I type in /Default.aspx it works fine, it's just when I go to the root.  I have already gone to the websites properties, documents tab, and checked the 'Enable default content page' checkbox and made sure that Default.aspx is at the top of the list, but it still doesn't work...

Reply
, 4/30/2008 4:30:23 AM
Hello jimmy,

We couldn't find any reason for this error message to be displayed. It seems you have already set Default.aspx to be a default document in your IIS.

What version of IIS are you using ?

Sincerely yours,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

Reply
Jason M, 5/9/2008 10:18:17 AM
I also noticed this issue.

On your demo site I added the ~/AboutUs/Default.aspx alias to the ~/AboutUs/AboutTIU.aspx page so that the following urls both resolve properly:
http://demo.sitefinity.com/AboutUs/AboutTIU.aspx
http://demo.sitefinity.com/AboutUs/Default.aspx

However, when I type the following url in my browser I get the 404 message Jimmy received.
http://demo.sitefinity.com/AboutUs/

Reply
, 5/10/2008 4:06:55 AM
Hello Jason M,
We think Jimmy got another error. The Directory Listing Denied error means that Internet Information Services can't find a default document to open. This is probably due to the fact that he doesn't have Default.aspx in the list with default documents. Here are the steps to add it:
1. Open IIS and and from your project virtual directory properties, click the Documents tab.
2. Make sure the checkbox "Enable default document" is checked. If Default.aspx is not in the list with default documents, click Add and type Default.aspx in the Textbox.

The behavior you describe is normal, as our demo site is not configured to handle extensionless URLs.
Please follow the instructions in our User Manual if you want to create pages without file extensions in your site. You can do that by setting wildcard application mappings in IIS or by configuring 404 redirection. For details about each approach, please refer to section Wildcard Application Mappings and Extensionless URLs.

Greetings,
Rebecca
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

Reply
Joe, 6/3/2008 11:33:46 AM
It's because you've physically deleted the Default.aspx file that came in the root with the new site instance.  I had the same thing happen to me.  Just create a new blank file called Default.aspx