« Previous Next »

Thread: This Virtual Directory does not allow contents to be listed

Last post 05-12-2009 7:08 AM by ma_khan. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 05-11-2009, 9:30 PM

    • annu7uch
    • Not Ranked
    • Joined on 05-12-2009, 1:06 AM
    • Posts 1

    This Virtual Directory does not allow contents to be listed

    This is driving me nuts

    I installed IIS on my system...

     Now whenever I try to open a local website  on my system (say, http://localhost/testApp)

    I get this error message

     "This Virtual Directory does not allow contents to be listed. IIS .NET "

    I created the testApp website in .NET...It is just a test application which has nothing on it except for a default blank page...I noticed that the page is called Default.aspx.

    So I went to IIS manager. Right click on Websites, In the documents tab , I added "Default.aspx" and moved it to top

    Now I get this error messgae when I try to open the website

     

    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

    Source Error:

    Line 36:             ASP.NET to identify an incoming user. 
    Line 37: -->
    Line 38: <authentication mode="Windows"/>
    Line 39: <!--

    Line 40: The <customErrors> section enables configuration 
     
    This is driving me nuts.....Some one plz help
     
     

  • 05-12-2009, 7:07 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,163
    • IIS MVPs

    Re: This Virtual Directory does not allow contents to be listed

    In the IIS MMC, you need to set the testApp folder as an application. On the Directory tab, click the Create button in the Application Settings section.

  • 05-12-2009, 7:08 AM In reply to

    Re: This Virtual Directory does not allow contents to be listed

    As the error information suggests ... convert the virtual directory into an application with in IIS ... which OS are you running ?

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (3 items)
Microsoft Communities