Sitelet https://github.com/microsoft/ApplicationInsights-dotnet/issues/1795
Skip to content

AI.config file is being read for loading TelemetryConfig in .net core #1795

Description

.NET Core/ASP.Net Core is not supposed to use AI.config file for configuration. The platform implementation class was supposed to return null for AI.Config contents. But this got broken when NETSTANDARD20 target was added.

https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/BASE/src/Microsoft.ApplicationInsights/Extensibility/Implementation/Platform/PlatformImplementation.cs#L1

This is a bug, can cause issues if an AI.Config file is present in application bin folder. (Maybe an old leftover with different ikey etc.)

Fix would be to make sure we read AI.Config only in .NET Framework

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions