Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. This Virtual Directory Does Not Allow Contents To Be Listed

This Virtual Directory Does Not Allow Contents To Be Listed

Scheduled Pinned Locked Moved Web Development
helpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant Thaker
    wrote on last edited by
    #1

    Hi.. I have uploaded my website in ftp. When I browse my website, I am getting Err Msg in browser as follows This Virtual Directory Does Not Allow Contents To Be Listed. Could u please tell me what is happening, I really got tired after so much trial and error. And tell me what is the relation between my virtual directory in loacal machine and my website which is there in ftp... Please do me this favour... Awaiting..\ Hemant

    By: Hemant Thaker

    N 1 Reply Last reply
    0
    • H Hemant Thaker

      Hi.. I have uploaded my website in ftp. When I browse my website, I am getting Err Msg in browser as follows This Virtual Directory Does Not Allow Contents To Be Listed. Could u please tell me what is happening, I really got tired after so much trial and error. And tell me what is the relation between my virtual directory in loacal machine and my website which is there in ftp... Please do me this favour... Awaiting..\ Hemant

      By: Hemant Thaker

      N Offline
      N Offline
      Naruki 0
      wrote on last edited by
      #2

      You didn't give many details, so this is just a guess. The web server you are using (such as Apache or IIS) does not allow directory listing for the specific path you typed in. For example, suppose you have this URL: http://mysite.com/coolsite/ Normally, when your browser asks for that folder from the web server, the server looks for a default page in that folder. You can configure what a default page is, but the most common are like these: index.html index.htm default.html default.htm In case there is no default file that matches, a web server will check its settings to see if it has permission to give a directory listing. Usually this is set to no, because that can give too much information to hackers. But the web site administrator can choose to allow directory listings for the whole site or just for certain folders. Your problem seems to be that.

      Don't let my name fool you. That's my job.

      H 1 Reply Last reply
      0
      • N Naruki 0

        You didn't give many details, so this is just a guess. The web server you are using (such as Apache or IIS) does not allow directory listing for the specific path you typed in. For example, suppose you have this URL: http://mysite.com/coolsite/ Normally, when your browser asks for that folder from the web server, the server looks for a default page in that folder. You can configure what a default page is, but the most common are like these: index.html index.htm default.html default.htm In case there is no default file that matches, a web server will check its settings to see if it has permission to give a directory listing. Usually this is set to no, because that can give too much information to hackers. But the web site administrator can choose to allow directory listings for the whole site or just for certain folders. Your problem seems to be that.

        Don't let my name fool you. That's my job.

        H Offline
        H Offline
        Hemant Thaker
        wrote on last edited by
        #3

        Hi.. Thanks for ur immediate reply... I developed the website in asp.net and my startup page is "InserPayDetails.aspx". And i want this page to be displayed , when i browse my site. Normally what i do is... go to ftp and put the whole content in wwwroot directory... so is it enough, or i need to do something more than this.. thanks Hemant

        By: Hemant Thaker

        N 1 Reply Last reply
        0
        • H Hemant Thaker

          Hi.. Thanks for ur immediate reply... I developed the website in asp.net and my startup page is "InserPayDetails.aspx". And i want this page to be displayed , when i browse my site. Normally what i do is... go to ftp and put the whole content in wwwroot directory... so is it enough, or i need to do something more than this.. thanks Hemant

          By: Hemant Thaker

          N Offline
          N Offline
          Naruki 0
          wrote on last edited by
          #4

          It appears your web server is running MS IIS. If you have a web server administrator, ask him. I guess you do not, so... If you have direct access to that computer, open the IIS console application and check the defaults for your particular case. Rename your startup page to the correct version (like index.aspx). However, you may not want to change the name, so... Add your page name exactly as is to the list of defaults. But just in case you don't have access to the IIS computer... Just navigate directly to that page, such as: http://mysite.com/somepath/InserPayDetails.aspx It's best to have a default page of some sort, because most people will not want to type the full path. You could make up one that has a link to the intended startup page, or that automatically redirects. There are lots of things that could be done. Good luck.

          Don't let my name fool you. That's my job.

          H 1 Reply Last reply
          0
          • N Naruki 0

            It appears your web server is running MS IIS. If you have a web server administrator, ask him. I guess you do not, so... If you have direct access to that computer, open the IIS console application and check the defaults for your particular case. Rename your startup page to the correct version (like index.aspx). However, you may not want to change the name, so... Add your page name exactly as is to the list of defaults. But just in case you don't have access to the IIS computer... Just navigate directly to that page, such as: http://mysite.com/somepath/InserPayDetails.aspx It's best to have a default page of some sort, because most people will not want to type the full path. You could make up one that has a link to the intended startup page, or that automatically redirects. There are lots of things that could be done. Good luck.

            Don't let my name fool you. That's my job.

            H Offline
            H Offline
            Hemant Thaker
            wrote on last edited by
            #5

            Hi... Now what i did was i renamed my startup page from anything.aspx to index.html and now if i browse my website i am getting index.html , but other pages are .aspx and for them i have put links in this .html page. Now i m getting startup page but can not browse the .aspx pages please guide for this thanks Hemant Thaker

            By: Hemant Thaker

            N L 2 Replies Last reply
            0
            • H Hemant Thaker

              Hi... Now what i did was i renamed my startup page from anything.aspx to index.html and now if i browse my website i am getting index.html , but other pages are .aspx and for them i have put links in this .html page. Now i m getting startup page but can not browse the .aspx pages please guide for this thanks Hemant Thaker

              By: Hemant Thaker

              N Offline
              N Offline
              Naruki 0
              wrote on last edited by
              #6

              The ASPX tells the server it needs to be handled as a MS ASP special file, which means it pre-processes the file before sending it to the client. HTML tells the server to just send it as is to the client. And you can't choose any old extension, because each one has its own rules. Your page is ASPX type, so it must have that extension. Every folder (also called directory) can have different default pages. You have to find out what ones are defined for your folder. This means you have to run the IIS administration program (I don't know the name, but it's probably in Control Panel on the web server) and see what's available. If ASPX is not available, you'll have to add it. It sounds like you have a lot of learning to do. Maybe find an ASPX for Beginners tutorial or something.

              Don't let my name fool you. That's my job.

              1 Reply Last reply
              0
              • H Hemant Thaker

                Hi... Now what i did was i renamed my startup page from anything.aspx to index.html and now if i browse my website i am getting index.html , but other pages are .aspx and for them i have put links in this .html page. Now i m getting startup page but can not browse the .aspx pages please guide for this thanks Hemant Thaker

                By: Hemant Thaker

                L Offline
                L Offline
                logiclabz
                wrote on last edited by
                #7

                we can change default page for the website by adding the particular page to website properties "Documents" tab in IIS 6. I assume that you do not have access to website properties "Documents" tab. Best to change page to "default.aspx" which will be default when you install .net in IIS. Hope u understand.

                ----------------- logiclabz

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups