首页 > Web开发 > 详细

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

时间:2016-04-24 15:43:04      阅读:605      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!