5
我有一个MVC2应用程序。我还有一组来自System.Web.IHttpHandler
的就绪HTTP处理程序。我如何一起使用它们?如何使用我的HTTP处理程序选择路径和其余的MVC处理程序?
我试着在web.config中的以下内容:
<system.webServer>
<!--other stuff-->
<handlers>
<add name="MyCustomHandler" verb="GET" path="MySpecificPath*" type="CustomHandling.CustomHttpHandlerBase, CustomHAndlingAssembly"/>
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
</handlers>
</system.webServer>
但控制从未达到我的处理程序和MVC处理程序是用于所有请求。
如何将我的处理程序用于所有其他路径的特定路径和MVC处理程序?