Version 3.1.2
- Fix
HttpException: Request is not available in this contextin the WEB package when callingTrackDependencyfromApplication_Startin classic ASP.NET. The WEB activity processors now safely handle the case whereHttpContext.Requestis not yet available. - Fix #3163:
TelemetryConfiguration.CreateDefault()on classic ASP.NET now returns a configuration already populated fromApplicationInsights.config(connection string, sampling, storage, live metrics, request/dependency tracking, etc.). A newPreApplicationStartMethod(WebApplicationInsightsInitializer) materializes and populates the singleton beforeApplication_Startruns, so customer code callingTelemetryConfiguration.CreateDefault()fromGlobal.asax.csno longer gets an empty configuration. TheApplicationInsightsHttpModuleno longer carries the config-reading bookkeeping.TelemetryConfiguration.PrependOpenTelemetryBuilderConfigurationno longer throws if the configuration was already built — it silently skips, so a secondTelemetryClientconstructed against an already-built configuration no longer throwsInvalidOperationException.