Error using MiniProfiler: System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory

I use MiniProfiler to profile my ASP.NET 4 Webform application. It works fine in localhost, but when I deploy to IIS7, I get the following error:

System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler 

These are the web.config lines that give me an error

 <system.webServer> <handlers> <add name="MiniProfiler" path="mini-profiler-resources" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> </handlers> 

Do you have any ideas what should I do in this situation?

+6
source share
2 answers

In the end, I ended up using the following configuration. This may be redundant and not recommended at all, but I solved my problem.

 <module runAllManagedModulesForAllRequests="true"/> 
0
source
  <handlers> <remove name="UrlRoutingModule-4.0"/> <add name="UrlRoutingModule-4.0" path="*" verb="*" type="System.Web.Routing.UrlRoutingModule" preCondition="" /> </handlers> 
0
source

Source: https://habr.com/ru/post/924571/


All Articles