zoukankan      html  css  js  c++  java
  • MiniProfiler找不到jquery的

    我一直在使用MiniProfiler来衡量网站性能。当我从1.9版本升级到2.0,它停止工作。我改变了命名空间从MvcMiniProfiler StackExchange.Profiling的。但是,当我加载一个页面,小提琴手显示以下要求有一个404错误:

    GET / local/mini-profiler-resources/jquery.1.7.1.js,V = tNlJPuyuHLy/d5LQjyDuRbWKa0weCpmO3xkO6MH4TtA = HTTP/1.1

    这可以防止在页面中渲染的结果。

    1.9版本MiniProfiler工作,我必须有Web.Config文件中的下列项目(在这篇文章中描述):

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

    我曾试图得到MiniProfiler 2.0运行包含在配置文件中,他们排除,既没有办法工作。

    这是我的机器上运行在IIS Express。

    我的应用程序是一个的WebForms的应用程序,使用表单的安全性。

    我该如何解决这个问题?

    看起来这是一个常见的​​问题,只需添加到web.config,它应该是罚款

    运行与设置为false runAllManagedModulesForAllRequests的MiniProfiler的

    <system.webServer>
    ...
      <handlers><addname="MiniProfiler"path="mini-profiler-resources/*"verb="*"type="System.Web.Routing.UrlRoutingModule"resourceType="Unspecified"preCondition="integratedMode"/></handlers></system.webServer>
  • 相关阅读:
    python之路----初识面向对象(二)
    python之路----初识面向对象
    python之路----包
    python之路----模块与序列化模块
    python之路----模块调用
    python之路----常用模块二
    Python之路----递归函数
    Python之路----内置函数
    【CSS】整屏大背景
    【PHP】打印输出var_dump+echo+print_r
  • 原文地址:https://www.cnblogs.com/zwb7926/p/3140738.html
Copyright © 2011-2022 走看看