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


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:

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

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


agree, we need to get this fixed


Hi there, I still get this error :slight_smile: