Closed bigbearzhu closed 5 years ago
aha, looks like there is already some fix at https://github.com/microsoft/ApplicationInsights-dotnet-server/pull/1211, but not released yet!
Its released as part of the newest beta, stable expected Sep last week.
If you are reporting bug/issue, please provide detailed Repro instructions.
Repro Steps
Not sure how to reproduce this, as it only happened once. Would be good to see if the stacktrace can provide hint.
Actual Behavior
Stacktrace:
System.IndexOutOfRangeException: Index was outside the bounds of the array. at bool System.Collections.Generic.HashSet<T>.AddIfNotPresent(T value) at bool Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.IsHandlerToFilter(IHttpHandler handler) at bool Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.NeedProcessRequest(HttpContext httpContext) at void Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.OnEndRequest(HttpContext context) at void Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule+AspNetEventObserver.OnNext(KeyValuePair<string, object> value) at void System.Diagnostics.DiagnosticListener.Write(string name, object value) at void System.Diagnostics.DiagnosticSource.StopActivity(Activity activity, object args) at bool Microsoft.AspNet.TelemetryCorrelation.ActivityHelper.StopAspNetActivity(Activity activity, IDictionary contextItems) at void Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_EndRequest(object sender, EventArgs e) at void System.Web.HttpApplication+SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at void System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)+() => { } at void System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at Exception System.Web.HttpApplication.ExecuteStep(IExecutionStep step, ref bool completedSynchronously)
Version Info
SDK Version : 2.10 .NET Version : 4.6.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : OS : Windows Hosting Info (IIS/Azure WebApps/ etc) : IIS