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

GetTokenCredentialType.GetTokenCredentialType picks wrong version of Azure.Core assembly #2945

Open
stas-sultanov opened this issue Jan 16, 2025 · 0 comments
Labels

Comments

@stas-sultanov
Copy link

  • List of [NuGet packages] and version that you are using: Microsoft.ApplicationInsights 2.20.0

  • Runtime version: net462

  • Hosting environment: Power Platform Environment, Windows ?

Describe the bug

Method TelemetryConfiguration.SetAzureTokenCredential throws exception.

Because ReflectionCredentialEnvelope.IsValidType returns false.

while TelemetryConfiguration.SetAzureTokenCredential receives an object that is, 100500% inherited from Azure.Core.TokenCredential class.

This happens because this Power Platform Plugin project references and uses this type:

Azure.Core.TokenCredential, Azure.Core, Version=1.44.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8

while the GetTokenCredentialType.GetTokenCredentialType is taking this version:

Azure.Core.TokenCredential, Azure.Core, Version=1.38.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8

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

1 participant