Skip to content

CreateRequestTelemetryPrivate: System.ArgumentOutOfRangeException: Length cannot be less than zero. #1513

Closed
@Dmitry-Matveev

Description

@Dmitry-Matveev

Repro Steps

SDK telemetry got the following exception trending:

AI (Internal): [Microsoft-ApplicationInsights-Extensibility-Web] Unknown error, message System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
    at System.String.Substring(Int32 startIndex, Int32 length)
    at Microsoft.ApplicationInsights.Web.Implementation.RequestTrackingExtensions.CreateRequestTelemetryPrivate(HttpContext platformContext)
    at Microsoft.ApplicationInsights.Web.Implementation.RequestTrackingExtensions.ReadOrCreateRequestTelemetryPrivate(HttpContext platformContext)
    at Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.OnBeginRequest(HttpContext context)
    at Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule.AspNetEventObserver.OnNext(KeyValuePair`2 value)

Version Info

SDK Version : 2.12.0-21496

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions