asp.net-mvc-3 - 在查询字符串中使用 “popup=1”时找不到mini-profiler结果

标签 asp.net-mvc-3 mvc-mini-profiler

重现此问题的步骤:

  • 请按照以下步骤将事件探查器添加到项目中:
  • 该项目位于虚拟目录
  • “找不到http://localhost/VirtualDirectory/mini-profiler-results?id = 00f8651d-ebbf-443d-b60d-d83f950adf6a&popup = 1”。 404.
  • 找到了“http://localhost/VirtualDirectory/mini-profiler-includes.less?v = 2.1.4183.14740”的URL,并且如果您从“mini-profiler-results” URL中删除了“popup = 1”您没有得到404。

  • 我正在使用截至2011年6月20日(1.3)的最新版本,使用NuGet,MVC3,VS2010,Knockout.js和jQuery 1.5.2。

    有人有什么想法吗?

    编辑:我已经添加了这是一个问题here

    最佳答案

    我想到了。我省去了非常重要的一步。

    protected void Application_EndRequest()
    {
        MiniProfiler.Stop();
    }
    

    关于asp.net-mvc-3 - 在查询字符串中使用 “popup=1”时找不到mini-profiler结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6413562/

    相关文章:

    c# - 添加文件上传到 Orchard 模块?

    c# - 无法获取 DisplayAttribute 名称

    css - .NET MVC3 : Prevent 404 for missing CSS files? 或者在编写 HTML 之前确保文件存在?

    asp.net-mvc-3 - MVC3 Razor 局部 View 渲染不包括数据验证属性

    Servicestack 迷你分析器

    asp.net-mvc-3 - 如何在 NHibernate 3.2 中实现通用存储库模式和 UoW

    asp.net-mvc-3 - 记录数据的 MiniProfiler 报告

    c# - MiniProfiler 没有出现在 ASP.NET Core 中

    entity-framework - 在带有 EF5 的 ASP.NET MVC 4 中使用 MiniProfiler