0

I cannot uninstall the MiniProfiler from my project. It always gives me this error message 'Microsoft JScript runtime error: 'MiniProfiler' is undefined' and inserts dynamic JavaScript code into my html page. It is on IE9 when I press the backward button of the browser.

Please help.

Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
sada
  • 584
  • 2
  • 8
  • 25

1 Answers1

0

If you add the following lines of code to your web.config file it should sort the problem out:

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

I noticed the exact same error when using a MiniProfiler with an MVC 4 application. This fixed it for me. For more information, check out the MiniProfiler forum:

http://community.miniprofiler.com/permalinks/113/microsoft-jscript-runtime-error-miniprofiler-is-undefined

Deano
  • 2,805
  • 3
  • 29
  • 42