« Previous Next »

Thread: IIS7 MVC default document problem

Last post 09-02-2009 4:00 PM by krolson. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 09-02-2009, 10:04 AM

    • mlbrillo
    • Not Ranked
    • Joined on 05-28-2009, 4:36 PM
    • Posts 1

    IIS7 MVC default document problem

    At least I THINK that's the problem.  I can't get my MVC project to load.  Here is my situation:

    Vista Home Premium, 3.5 Framework, MVC project, IIS7

    When trying to view my project in the browser (http://localhost/<myproject>), it gives me a "403.14 Forbidden. The web server is configured to not list the contents of the directory."

    I'm very new to MVC, and fairly new to IIS7, so I am not sure where to begin.  I have a default document set in IIS, but I have no idea what other setting(s) I am missing.  Any ideas?

    Thanks in advance, and please let me know if you need any more information.

  • 09-02-2009, 4:00 PM In reply to

    • krolson
    • Top 75 Contributor
    • Joined on 10-06-2008, 10:32 PM
    • Posts 101

    Re: IIS7 MVC default document problem

    What do you mean by having a default document set in IIS? Do you mean simply that it is installed/enabled? 

    I believe only the following are included in the default document settings by default, and if the name of your page is not listed, you would need to add it to the list of allowed default documents. For example, if your document was default.aspx, you would need to be sure to add it to this list:

  • Default.htm
  • Default.asp
  • Index.htm
  • Index.html
  • Iisstart.htm
  • Also, this is a good reference for general configuration reference information related to default document settings: http://www.iis.net/ConfigReference/system.webServer/defaultDocument

Page 1 of 1 (2 items)
Microsoft Communities