Skip to content

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

@cijothomas

Description

@cijothomas

.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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions