MiniProfiler cannot find jquery

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?

+24
mvc-mini-profiler
Apr 18 2018-12-18T00:
source share
6 answers

This seems like a common problem, just add this to your web.config file, and that should be fine.

Running MiniProfiler with runAllManagedModulesForAllRequests set to false

 <system.webServer> ... <handlers> <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> </handlers> </system.webServer> 
+26
Jan 15 '13 at 4:06
source share

What I eventually had to do was create a mini profiler on my server and then copy all the files from StackExchange.Profiling / UI into it. I don’t know why this works. I assume that I am missing some server settings because I only had to do this on the production system.

Everything worked perfectly.
+1
Apr 29 '12 at 2:30
source share

for me it started to work when I write the following code

  protected void Application_EndRequest() { MiniProfiler.Stop(); } 

instead

  protected void Application_End(object sender, EventArgs e) { // Code that runs on application shutdown MiniProfiler.Stop(); } 
+1
Sep 14 '13 at 4:59
source share

Try re-registering ASP.NET by running aspnet_regiis -i from the appropriate .NET Framework folder in the Windows \ Microsoft.NET directory. I had similar problems that were resolved by re-registering ASP.NET handlers.

I think I had this problem after installing the static file functions in IIS after installing the .NET Framework.

0
Apr 25 '12 at 9:12
source share

I do not know about ASP.NET, but in Rails I decided to delete the tmp / miniprofiler files. When I reload the page, it works.

0
Jun 06 '13 at 20:17
source share

To fix this, I had to change DefaultAppPool from Classic to Integrated.

This fixed the problem.

Also, since I use MVC4, I had to download MiniProfiler sources and compile them with MVC4 libraries.

0
Sep 20 '13 at 9:59
source share



All Articles