microsoft/ApplicationInsights-dotnet v3.1.2
microsoft/ApplicationInsights-dotnet
Captured source
source ↗published May 28, 2026seen Jun 26captured 1whttp 200method plain
3.1.2
Repository: microsoft/ApplicationInsights-dotnet
Tag: v3.1.2
Published: 2026-05-28T23:20:18Z
Prerelease: no
Release notes:
Version 3.1.2
- Fix `HttpException: Request is not available in this context` in the WEB package when calling `TrackDependency` from `Application_Start` in classic ASP.NET. The WEB activity processors now safely handle the case where `HttpContext.Request` is not yet available.
- Fix #3163: `TelemetryConfiguration.CreateDefault()` on classic ASP.NET now returns a configuration already populated from `ApplicationInsights.config` (connection string, sampling, storage, live metrics, request/dependency tracking, etc.). A new `PreApplicationStartMethod` (`WebApplicationInsightsInitializer`) materializes and populates the singleton before `Application_Start` runs, so customer code calling `TelemetryConfiguration.CreateDefault()` from `Global.asax.cs` no longer gets an empty configuration. The `ApplicationInsightsHttpModule` no longer carries the config-reading bookkeeping. `TelemetryConfiguration.PrependOpenTelemetryBuilderConfiguration` no longer throws if the configuration was already built — it silently skips, so a second `TelemetryClient` constructed against an already-built configuration no longer throws `InvalidOperationException`.
Notability
notability 3.0/10Routine point release for monitoring library