2012-08-10 139 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