gpt4 book ai didi

IIS 7.5 中的 ASP.NET MVC3

转载 作者:行者123 更新时间:2023-12-04 01:23:26 25 4
gpt4 key购买 nike

你好
我想在 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 服务器配置为不列出此目录的内容。
详细的错误信息
模块目录ListingModule
通知 ExecuteRequestHandler
处理程序静态文件
错误代码 0x00000000
请求的 URL 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 和集成管道模式配置的应用程序池中运行?

我现在能想到的就这些了,如果我有其他想法我会更新帖子。

关于IIS 7.5 中的 ASP.NET MVC3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5601325/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com