Mini Profiler does not render scripts

后端 未结 1 1970
抹茶落季
抹茶落季 2021-01-11 13:05

I\'ve added Mini Profiler through NuGet and though in a really simple project works lovely, this is a big and existing project, and of course that I

相关标签:
1条回答
  • 2021-01-11 13:46

    This is a known issue with certain configurations of IIS.

    The workaround is to ensure the UrlRoutingModule handles all the mini profiler includes in your web.config:

    <system.webServer>
        <handlers>
            <add name="UrlRoutingModule1" path="mini-profiler*.js" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
            <add name="UrlRoutingModule2" path="mini-profiler*.css" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
            <add name="UrlRoutingModule3" path="mini-profiler*.tmpl" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
        </handlers>
    </system.webServer>
    

    There are 2 open tickets on this issue at the moment:

    • http://code.google.com/p/mvc-mini-profiler/issues/detail?id=50
    • http://code.google.com/p/mvc-mini-profiler/issues/detail?id=60

    In a future version, to avoid the issue, we will probably serve our includes extensionless.

    0 讨论(0)
提交回复
热议问题