<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web>
<httpModules>
<add xdt:Transform="Remove" xdt:Locator="Match(name)" name="ApplicationInsightsWebTracking" />
</httpModules>
</system.web>
<system.webServer>
<modules>
<add xdt:Transform="Remove" xdt:Locator="Match(name)" name="ApplicationInsightsWebTracking" />
</modules>
</system.webServer>
</configuration>
我曾经遇到过类似的问题,这个问题的答案向我解释了如何在我的开发环境中使用这段代码片段(即不在发布流程中使用)。
<system.webServer> <modules> <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="TelemetryCorrelationHttpModule" /> </modules> </system.webServer>
- Falco Alexander<system.diagnostics> <trace> <listeners> <add xdt:Transform="Remove" xdt:Locator="Match(name)" name="myAppInsightsListener" /> </listeners> </trace> </system.diagnostics>
...现在很安静 :) @LeonardoSeccia,你的答案是否考虑加入这个? - Falco Alexander