# Microsoft JScript runtime error: 'MiniProfiler' is undefined

**URL:** <https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57>\
**Category:** uncategorized\
**Created:** [September 23, 2012, 7:50am UTC](https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57 "2012-09-23T07:50:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haresh\_Ambaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/haresh_ambaliya/32/438_2.png) [@Haresh\_Ambaliya](https://community.miniprofiler.com/u/Haresh_Ambaliya)\
**Post date:** [September 23, 2012, 7:50am UTC](https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57/1 "2012-09-23T07:50:59Z")

</div>

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

@StackExchange.Profiling.MiniProfiler.RenderIncludes();

into \_Layout.cshtml.

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

---

<div class="post-metadata">

**Author:** ![Karel\_Svoboda](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@Karel\_Svoboda](https://community.miniprofiler.com/u/Karel_Svoboda)\
**Post date:** [September 29, 2012, 11:23pm UTC](https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57/2 "2012-09-29T23:23:06Z")

</div>

I found a solution for this error in [http://odetocode.com/Blogs/scott/archive/2012/09/11/elmah-and-miniprofiler-in-asp-net-mvc-4.aspx](http://odetocode.com/Blogs/scott/archive/2012/09/11/elmah-and-miniprofiler-in-asp-net-mvc-4.aspx)

I forgot to put handler in my web.config

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

```

After that everything is working in MVC 4.

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [September 24, 2012, 11:39am UTC](https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57/3 "2012-09-24T11:39:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Karel\_Svoboda](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@Karel\_Svoboda](https://community.miniprofiler.com/u/Karel_Svoboda)\
**Post date:** [September 29, 2012, 11:17pm UTC](https://community.miniprofiler.com/t/microsoft-jscript-runtime-error-miniprofiler-is-undefined/57/4 "2012-09-29T23:17:47Z")

</div>

I have a same error too.
