microsoft / ApplicationInsights-dotnet-server

Microsoft Application Insights for .NET Web Applications
https://azure.microsoft.com/services/application-insights/
133 stars 67 forks source link

Index was outside the bounds of the array #1251

Closed bigbearzhu closed 5 years ago

bigbearzhu commented 5 years ago

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

bigbearzhu commented 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!

cijothomas commented 5 years ago

Its released as part of the newest beta, stable expected Sep last week.