2

我把它归结为最小的例子:

测试.aspx

(后面的代码是空的)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="C3.Pages.Test" %>
<%@ Import Namespace="StackExchange.Profiling" %>
<!DOCTYPE html>
<body>
    <%=MiniProfiler.RenderIncludes() %>
</body>

全球.asax

    protected void Application_BeginRequest()
    {
        if (Request.IsLocal)
        {
            MiniProfiler.Start();
            var ignored = MiniProfiler.Settings.IgnoredPaths.ToList();
            ignored.Add("WebResource.axd");
            MiniProfiler.Settings.IgnoredPaths = ignored.ToArray();
        }
    }
    protected void Application_EndRequest()
    {
        MiniProfiler.Stop();
    }

这会产生结果:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

谁能向我解释这里发生了什么?我希望只有一个显示。

4

1 回答 1

2

对,想通了。这是 Adblock Plus 的旧版本,出​​于某种原因,它要求每个页面两次。

在隐身模式下运行停止了问题的发生。更新 Adblock Plus 扩展解决了这个问题。

于 2016-12-15T15:46:07.420 回答