部署一个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.

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

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

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

 

相关文章:

  • 2021-08-01
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-06-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-05-02
  • 2022-12-23
  • 2021-04-06
相关资源
相似解决方案