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/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

当我尝试使用 VS12 运行我的第一个应用程序时出现上述错误。您知道出了什么问题吗?我该如何解决?在 VS10 我想我没有这种错误信息

4

1 回答 1

1

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

有关目录列表的更多信息:启用目录列表

于 2012-08-10T02:35:44.483 回答