码迷,mamicode.com
首页 > Web开发 > 详细

The Web server is configured to not list the contents of this directory.

时间:2016-04-24 15:44:00      阅读:807      评论:0      收藏:0      [点我收藏+]

标签:

部署一个ASP.NET MVC网站至一个全新的服务器Windows Server 2008 R2, 数据为MS SQL Server 2014 64bit Expression版本。

运行时,它第一次显示出来是一个异常:

The Web server is configured to not list the contents of this directory.

技术分享

 
解决方法:
打开站点根目录下的Web.config,添加下面节点信息:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

 

The Web server is configured to not list the contents of this directory.

标签:

原文地址:http://www.cnblogs.com/insus/p/5426914.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!