7

Miniprofiler on my site has stopped working. In Chrome console, I get a 500 error on:

/mini-profiler-resources/includes.js?v=4.0.0.0

The error is:

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

My web.config file has the following relevant lines:

  <system.webServer>
    <handlers>
      <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>
    <modules>
      <add name="DynamicURLRewrite" type="C3.Code.Controls.Application.Rewriting.URLRewriter" />
      <remove name="TelemetryCorrelationHttpModule" />
      <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
      <remove name="ApplicationInsightsWebTracking" />
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
    </modules>
5
  • What is the value for runAllManagedModulesForAllRequests in your web.config? Commented Oct 10, 2017 at 20:21
  • What version of IIS are you running? support.microsoft.com/en-us/help/980368/… Commented Oct 11, 2017 at 7:36
  • @TarunLalwani that key is not specified in my web.config Commented Oct 11, 2017 at 10:27
  • @OluwafemiSule 10.0.15063.0 Commented Oct 11, 2017 at 10:29
  • @OluwafemiSule also cannot install the hotfix, "The certificate for the signer of the message is invalid or not found" Commented Oct 11, 2017 at 10:31

1 Answer 1

1
+300

Please add below

  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
  </system.webServer> 

To web.config and see if it helps? If that doesn't work then check if you are able to access the files using localhost

http://127.0.0.1:<port>/mini-profiler-resources/includes.js?‌​v=4.0.0.0

If nothing works give uninstall and reinstalling MiniProfiler also a shot. Sometime re-installations do wonders

Sign up to request clarification or add additional context in comments.

5 Comments

Can you check if http://127.0.0.1:<port>/mini-profiler-resources/includes.js?v=4.0.0.0 works? Use the port configured
Unfortunately not
Reinstalled Miniprofiler and got it working again now. Not sure why that fixed it. IF you want to edit your answer to suggest uninstall/reinstall I'll mark it as correct as you tried to help :)
@TomGullen, glad it works for you now :-). Answer updated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.