« Previous Next »

Answered Thread: Server Error when open localhost

Last post 10-27-2009 11:20 PM by Leo Tang - MSFT. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-26-2009, 5:41 AM

    • alrahemi
    • Not Ranked
    • Joined on 10-26-2009, 8:55 AM
    • Posts 1

    Server Error when open localhost

    when i write localhost  . it is show like this

     

    Server Error in Application "DEFAULT WEB SITE"

     

    and error summery

    HTTP Error 403.14 - Forbidden

    The Web server is configured to not list the contents of this directory.

     

    and detailed errore information

    Module DirectoryListingModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x00000000

    Requested URL http://localhost:80/
    Physical Path C:\inetpub\wwwroot\vb2008
    Lo

     

    gon Method
    Anonymous
    Logon User Anonymous

     

    most likely cuses

    A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

     

  • 10-26-2009, 6:53 AM In reply to

    • Sansom
    • Top 500 Contributor
    • Joined on 11-14-2006, 3:57 AM
    • Bangalore
    • Posts 22

    Answered Re: Server Error when open localhost

    The indication that this has gone into DirectoryListingModule and error message that default document is not set asks for a default document to be configured. If you directly browse the aspx page like http://localhost/default.aspx instead of just http://localhost should display the page properly.

    Cheers,
    Santhosh

    visit my blogs at
    http://blogs.msdn.com/sansom
  • 10-27-2009, 11:20 PM In reply to

    Answered Re: Server Error when open localhost

    Hi,

    Yes, this is a default document related issue. You can get more information from here:

    Default Document <defaultDocument>
    http://www.iis.net/ConfigReference/system.webServer/defaultDocument

    If you do really need to list the contents in directory, you can enable the directory browsing:

    Directory Browse <directoryBrowse>
    http://www.iis.net/ConfigReference/system.webServer/directoryBrowse

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)
Microsoft Communities