ASP.NET MVC 4和ExtensionlessUrlHandler [英] ASP.NET MVC 4 and ExtensionlessUrlHandler

查看:292
本文介绍了ASP.NET MVC 4和ExtensionlessUrlHandler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS 2012和创建了两个应用程序:

I use VS 2012 and created two application:


  1. 应用程序#1。 MVC 3 ,NET 4.5

应用程序#2。 MVC 4 ,NET 4.5

Application#2. MVC 4, NET 4.5

如果我比较这些应用程序的web.config中,我看到了应用程序#2(MVC 4)具有注册了以下处理:

If I compare web.config of these applications, I see the app#2 (MVC 4) has the following handlers registered:


  1. ExtensionlessUrlHandler-ISAPI-4.0_32bit

  2. ExtensionlessUrlHandler-ISAPI-4.0_64bit

  3. ExtensionlessUrlHandler-集成-4.0

有谁请解释一下它们使用时如何和?

Could anybody please explain how and when they are used?

还有一个问题(可选)。如果现在要求这些处理程序,我应该在哪里把我的处理程序?之前还是之后呢?

One more question (optional). If these handlers are required now, where should I put my handlers? Before or after them?

推荐答案

下面是一篇博客文章,可能会有帮助。

Here is a blog post that may be helpful.

<一个href=\"http://blogs.msdn.com/b/tmarq/archive/2010/05/26/how-extensionless-urls-are-handled-by-asp-net-v4.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/tmarq/archive/2010/05/26/how-extensionless-urls-are-handled-by-asp-net-v4.aspx

(具有讽刺意味不使用扩展名的URL)

(which ironically doesn't use an extensionless url)

我的理解是,你将需要IIS 7或更高版本,从集成映射和任何东西少,你将需要使用其他的ISAPI处理的一个好处。

My understanding is that you will need IIS 7 or greater to benefit from the Integrated mapping and for anything less you will need to use one of the other ISAPI handlers.

这篇关于ASP.NET MVC 4和ExtensionlessUrlHandler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆