I used MiniProfiler to evaluate site performance. When I upgraded from version 1.9 to 2.0, it stopped working. I changed the namespace from MvcMiniProfiler to StackExchange.Profiling. But when I load the page, the violinist shows that there is a 404 error for the following request:
GET / local / mini-profiler-resources / jquery.1.7.1.js? V = tNlJPuyuHLy / d5LQjyDuRbWKa0weCpmO3xkO6MH4TtA = HTTP / 1.1
This prevents the display of results on the page.
To get the MiniProfiler version 1.9, I had to have the following entries in the Web.Config file (as described in this post ):
<system.webServer> <handlers> <add name="UrlRoutingModule1" path="mini-profiler*.js" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> <add name="UrlRoutingModule2" path="mini-profiler*.css" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> <add name="UrlRoutingModule3" path="mini-profiler*.tmpl" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> </handlers> </system.webServer>
I tried to run MiniProfiler 2.0 with those included in the configuration file and exclude them, none of the methods worked.
This works on my development machine in IIS Express.
My application is a WebForms application that uses form protection.
How to resolve this?
mvc-mini-profiler
epotter Apr 18 2018-12-18T00: 00Z
source share