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

 
  • Created:11 months ago
  • Modified:11 months ago by sam
  • Status:confirmed
  • Owner:unassigned
1 supporter

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?

mvc
 
votes newest oldest
 
  • Created:11 months ago

agree, we need to get this fixed

 
 
  • Created:7 months ago

Hi there, I still get this error :)