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處理程序?