Microsoft JScript runtime error: 'MiniProfiler' is undefined


Hi There,

I am using MiniProfiler.MVC for MVC4, but I am getting following error.

ERROR: Microsoft JScript runtime error: ‘MiniProfiler’ is undefined

I have already put


into _Layout.cshtml.

Is there anything that I am missing??? Please help me. Thank you.


I found a solution for this error in

I forgot to put handler in my web.config

    <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" 
         preCondition="integratedMode" />

After that everything is working in MVC 4.


have not seen this, can you include a screenshot of your network tab in chrome, are there any errors there


I have a same error too.