2012-08-10 84 views
2
HTTP Error 403.14 - Forbidden 
The Web server is configured to not list the contents of this directory. 
Most likely causes: 

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

Things you can try: 

    If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists. 
    Enable directory browsing. 
     Go to the IIS Express install directory. 
     Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level. 
     Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level. 
    Verify that the configuration/system.webServer/[email protected] attribute is set to true in the site or application configuration file. 

我有上述错误,当我尝试运行我的第一个应用程序与VS12。你有什么想法发生了什么问题,我该如何解决它?在VS10中,我猜我没有这种错误信息IIS和asp.net appcmd

+0

你尝试了'东西,你可以从错误消息try'? – 2012-08-10 02:32:45

+0

是的,我做了,但它仍然没有工作 – 2012-08-10 02:54:14

+0

这个单一的信息是无用的。你在做ASP.NET MVC开发吗?看起来,路由不起作用,http://msdn.microsoft.com/en-us/library/cc668201.aspx – 2012-08-10 03:16:34

回答

1

您需要启用目录列表和/或向网站的根目录添加默认文档(default.aspx,default.htm ...)。

有关目录列表的详细信息:Enable directory listing

+0

感谢您的回复,我遵循并执行了您的建议,但我仍然遇到了同样的错误消息 – 2012-08-10 03:01:41