Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cijothomas opened this issue Apr 16, 2020 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@cijothomas
Copy link
Contributor

.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

@cijothomas cijothomas added the bug label Apr 16, 2020
@cijothomas cijothomas added this to the 2.15 milestone Apr 16, 2020
@TimothyMothra
Copy link
Member

adding to this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants