ApplicationInsightsProfiler exceptions

Andreas H 36 Reputation points
2024-05-21T06:38:33.6566667+00:00

We have an Application Insights instance linked with an App Service that runs a .NET8 Web API. The Application Insights Profiler has only the Sampling trigger enabled with Sample rate set to Normal. The CPU and Memory triggers are disabled. In the App Service > Application Insights under the "Instrument your application" section the Profiler is on and the Snapshot debugger is on.

At random times throughout the day we see pairs of Exceptions logged in Application Insights:

  • First exception
type: System.Runtime.InteropServices.COMException 
assembly: ApplicationInsightsProfiler, Version=2.6.2201.2106, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
method: DiagnosticsHub.StandardCollector.Host.Interop.IStandardCollectorService.CreateSession
outerMessage: Exception from HRESULT: 0xE111005E
outerAssembly: ApplicationInsightsProfiler, Version=2.6.2201.2106, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
outerMethod: DiagnosticsHub.StandardCollector.Host.Interop.IStandardCollectorService.CreateSession
  • Second exception (2 min later than the first one)
type: System.InvalidOperationException
assembly: ApplicationInsightsProfiler, Version=2.6.2201.2106, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
method: Microsoft.ServiceProfiler.Collectors.DetailedTraceCollector+
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,921 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Paul Harrington 0 Reputation points Microsoft Employee
    2024-05-27T16:35:30.9566667+00:00
    0 comments No comments