Virtual Directory Permissions

Posted on 2007-07-23
Last Modified: 2010-03-19
Hi there!

When trying to access SQL Server 2005 local-based database through string connection (through VStudio 2005) I get the following message:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

What/Where should I make permissions, please? (I´m the administrator, I have all rights for any necessary changes.)

Question by:fskilnik
    LVL 16

    Expert Comment

    Could you please explain more clearly the steps you are taking to cause this error?
    LVL 37

    Accepted Solution

    This message is probably coming from IIS.
    Open IIS manager, right-click on your app's virtual directory, go to "properties", and under the "documents" tab, add:

    ( web apps have that as the default start page, but when you create a virtual directory, it isn't in the list and you get the error you posted)

    or, if you really want to list the files in the directory, instead of going to the "Documents" tab, go to the first tab, "Virtual Directory" and check the checkbox that says "directory browsing"

    Author Comment

    Sorry for the delay!

    >>  (samtran0331)
    >>      Open IIS manager, right-click on your app's virtual directory, go to "properties", and under
    >>      the "documents" tab, add:  Default.aspx


    Congrats and thanks a lot,


    Author Comment


    I was curious and went to see your profile... UAU!

    Congrats for your qualifications, to your clear, fair "anti-rude policy" and to one of the great quotations you put there:

    "Computers are useless. They can only give you answers."
    - Pablo Picasso

    I didn´t know this one and coming from a computing expert as you are, I am even more positively impressed.

    See you in my next difficulties, I hope!!

    Best Regards,

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now