你好
我想在 Windows Server 2008 R2 SP1 中发布 MVC 3 站点。我安装了 MVC 3 和 MVC 2。当我创建 MVC 2 站点时,它工作正常,但 MVC 3 站点无法工作。我首先安装了 MVC 3,当该站点无法工作时,我安装了 MVC 2 并测试了另一个(MVC 2)站点,一切正常。问题是 MVC 3。
请提供任何帮助
这是错误:
错误总结
HTTP 错误 403.14 - 禁止
Web 服务器配置为不列出该目录的内容。
详细错误信息
模块目录列表模块
通知执行请求处理程序
处理程序静态文件
错误代码 0x00000000
请求的网址https://mywebsite.test.own:443/物理路径 D:\WebSite
登录方式 匿名
匿名用户登录
最可能的原因:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
您可以尝试的事情:
If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing using IIS Manager.
Open IIS Manager.
In the Features view, double-click Directory Browsing.
On the Directory Browsing page, in the Actions pane, click Enable.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
链接和更多信息 如果未在 URL 中指定文档、未为网站或应用程序指定默认文档以及未为网站或应用程序启用目录列表,则会出现此错误。可能会故意禁用此设置以保护服务器内容。
查看更多信息 »
看起来请求将发送到静态文件处理程序,而根本不会进入 MVC 堆栈。有些事情要检查...
在配置文件中,您是否已将元素上的 runAllManagedModulesForAllRequests 设置为 true ?
您是否在为 .NET 4 和集成管道模式配置的应用程序池中运行?
目前我能想到的就是这些,如果我有其他想法,我会更新帖子。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)