3

我使用 NuGet 安装 MiniProfiler 和 MiniProfiler.MVC3 插件。http://miniprofiler.com/

我已经尝试了网站建议的所有内容,包括在 web.config 中添加:

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

但是,它仍然不会显示在页面上。事实上,包含似乎根本没有呈现。是的,MiniProfiler.RenderIncludes() 在我的母版页上。

请帮忙!

4

1 回答 1

1

我认为你需要插入这个并尝试调试。

protected void Application_BeginRequest()
{
//    if (Request.IsLocal)
    {
        MiniProfiler.Start();
    } 
}
于 2012-11-20T14:51:02.647 回答