IIS 7.5 无法打开处理程序映射?
我需要更新 IIS 7.5 上的处理程序映射,以允许将没有扩展名的 URL 路由到应用程序。该应用程序最初是用 ASP.NET 2.0 编写的,但后来升级到 ASP.NET 3.5。我不知道这是否相关,但我之前更新其他 .net 3.5 应用程序的处理程序映射没有问题。我还应该注意到,这在 IIS 6.0 上运行良好
这是我在 IIS 7.5 中单击“处理程序映射”链接时收到的错误消息(请注意,实际上并没有这样的错误消息,这会很有帮助):
处理程序映射
执行此操作时出错 操作。
详细信息:
文件名:\?\D:\path\to\web.config
错误:
<小时>好的
有人见过这个吗?如果您需要更多信息,请告诉我,我会提供。谢谢。
I need to update the handler mappings on IIS 7.5 to allow URLs that don't have extensions to be routed to an application. The application was originally written in ASP.NET 2.0, but then later upgraded to ASP.NET 3.5. I don't know if that has relevance, but I've had no problem updating handler mappings for other .net 3.5 apps before. I should also note that this works fine on IIS 6.0
This is the error message I get when I click the Handler Mappings link in IIS 7.5 (notice there isn't really an error message as such, which would be helpful):
Handler Mappings
There was an error while performing this
operation.Details:
Filename: \?\D:\path\to\web.config
Error:
OK
Has anyone seen this before? If you need more info, let me know and I'll supply. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我遇到了同样的问题,事实证明该项目使用了 IIS URL 重写模块(默认情况下未安装)。
我安装了这个之后,该网站第一次工作了。
检查您的 web.config 文件(特别是如果它未在 IIS 中打开)是否有任何非默认 IIS 模块。
I was having the same issue, it turns out the project used the IIS URL rewrite module (not installed by default).
After I installed this, the site worked first time.
Check your web.config file (especially if it doesn't open in IIS) for any non default IIS modules.
IIS 7.0(及更高版本)从 Web.config 文件读取处理程序映射的方式与 IIS 6 执行此操作的方式有所不同。这取决于应用程序池的“托管管道模式”。如果您将其设置为集成,则您的处理程序映射应位于
如果您使用经典管道模式,则您的处理程序应位于
您可以找到更多信息 此处。最好的办法可能是检查您正在使用的管道模式,然后手动检查配置文件(IIS 管理控制台所做的就是编辑 Web 应用程序的
web.config
文件,这样您就可以检查幕后发生了什么)。There's a difference in how IIS 7.0 (and higher) reads handler mappings from your Web.config file and how IIS 6 does this. It depends on the 'Managed Pipeline Mode' of your application pool. If you set it to integrated, your handler mappings are expected to be in
If you use classic pipeline mode, your handlers should be in
You can find some more info here. It's probably the best idea to check what pipeline mode you're using and then check the config file manually (all the IIS management console does is edit the
web.config
file of you web application, so you can check what's happening behind the scenes).如果您使用的是 IIS7.0 / IIS7.5 :-
转到 IIS 管理器
(开始-->运行-->键入“Inetmgr”或右键单击“我的电脑”,选择“管理”选项,展开“服务和应用程序”,选择“Internet 信息管理器”)
右键单击应用程序的虚拟目录,选择“转换为应用程序”选项。
这将解决这个问题。
If you are using IIS7.0 / IIS7.5 : -
Goto IIS Manager by
(Start-->Run-->type 'Inetmgr' Or Right click on MyComputer, Select 'Manage' option, Expand 'Services And Applications, select 'Internet Information Manager')
Right click on the application's virtual directory, choose 'Convert To Application' option.
This will solve the issue.