7

I'm using MiniProfiler to profile my ASP.NET 4 Webform application. In localhost it works fine, but when I deploy to IIS7 I receive the following error:

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

This is the web.config lines that gives me the 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 idea what should I do in this situation?

Nhím Hổ Báo
  • 572
  • 5
  • 20

2 Answers2

0

In the end, I ended up with using the following config. It might be overkill and not generally recommended, but I solved my problem

<module runAllManagedModulesForAllRequests="true"/>
Nhím Hổ Báo
  • 572
  • 5
  • 20
  • @LDJ: Please make sure that your application path doesn't include "." character. For example localhost:1234/my-application.admin won't work – Nhím Hổ Báo Oct 25 '14 at 16:17
0
 <handlers>
    <remove name="UrlRoutingModule-4.0"/>
    <add  name="UrlRoutingModule-4.0" path="*" verb="*" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  </handlers>