HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容

解决方法:

1,根据提示,在web.config中添加如下配置:

<?xml version="1.0" encoding="utf-8"?>

<!--
  有关如何配置 ASP.NET 应用程序的详细信息,请访问
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
  </system.web>

  <system.webServer>
    <directoryBrowse enabled="true"/>
  </system.webServer>

</configuration>

2,IIS中启用目录浏览: 制面板 - 管理工具 - Internet 信息服务(IIS)管理器 - 目录浏览 选择启用,如图:

 

错误提示页面:

posted @ 2015-01-14 21:20  橙子在上海  阅读(656)  评论(0编辑  收藏  举报