# .NET 4.5 gives 404 error accessing mini-profiler-resources

**URL:** <https://community.miniprofiler.com/t/net-4-5-gives-404-error-accessing-mini-profiler-resources/109>\
**Category:** uncategorized\
**Created:** [June 29, 2012, 10:26pm UTC](https://community.miniprofiler.com/t/net-4-5-gives-404-error-accessing-mini-profiler-resources/109 "2012-06-29T22:26:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MysticFireball](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@MysticFireball](https://community.miniprofiler.com/u/MysticFireball)\
**Post date:** [June 29, 2012, 10:26pm UTC](https://community.miniprofiler.com/t/net-4-5-gives-404-error-accessing-mini-profiler-resources/109/1 "2012-06-29T22:26:10Z")

</div>

A breaking change in .NET 4.5 (RC) creates a 404 error while trying to access resources underneath mini-profiler-resources. This appears to affect both MVC 3 and MVC 4 projects targeting .NET 4.5.

Setting `runAllManagedModulesForAllRequests="true"` will not fix the problem. I was finally able to make it work by including:

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

```

Can this behavior be fixed, or can MiniProfiler.MVC be updated to add this section to web.config by default?

---

<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:** [July 3, 2012, 7:45pm UTC](https://community.miniprofiler.com/t/net-4-5-gives-404-error-accessing-mini-profiler-resources/109/2 "2012-07-03T19:45:58Z")

</div>

agree, we need to get this fixed

---

<div class="post-metadata">

**Author:** ![Unknown23](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/unknown23/32/1006_2.png) [@Unknown23](https://community.miniprofiler.com/u/Unknown23)\
**Post date:** [October 10, 2012, 8:52am UTC](https://community.miniprofiler.com/t/net-4-5-gives-404-error-accessing-mini-profiler-resources/109/3 "2012-10-10T08:52:45Z")

</div>

Hi there, I still get this error 🙂
