[BUG] Exception: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0 after upgrading Azure.Identity from 1.5.0 to 1.10.2 as per security vulnerability #39632
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Identity 1.10.2
Describe the bug
We are facing an exception as detailed below when we tried upgrading Azure.Identity from 1.5.0 to 1.10.2 which is required as per security vulnerability.
Encountered exception: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040). Retrying after waiting 250000000 ticks. Stack trace:
2023-10-31 09:04:35.095725: at Azure.Core.Pipeline.DiagnosticScopeFactory..ctor(String clientNamespace, String resourceProviderNamespace, Boolean isActivityEnabled, Boolean suppressNestedClientActivities)
2023-10-31 09:04:35.096857: at Azure.Core.Pipeline.ClientDiagnostics..ctor(String optionsNamespace, String providerNamespace, DiagnosticsOptions diagnosticsOptions, Nullable
1 suppressNestedClientActivities) 2023-10-31 09:04:35.097762: at Azure.Core.Pipeline.ClientDiagnostics..ctor(ClientOptions options, Nullable
1 suppressNestedClientActivities)2023-10-31 09:04:35.098471: at Azure.Identity.CredentialPipeline..ctor(TokenCredentialOptions options)
2023-10-31 09:04:35.098754: at Azure.Identity.CredentialPipeline.GetInstance(TokenCredentialOptions options)
2023-10-31 09:04:35.100529: at Azure.Identity.ManagedIdentityCredential..ctor(String clientId, TokenCredentialOptions options)
Expected behavior
The issue does not occur with Azure.Identity 1.3.0 or 1.5.0. Is there any breaking change while upgrading?
Actual behavior
The exception as mentioned above.
Reproduction Steps
Upgrade Azure.Idenity from 1.5.0 to 1.10.2
Environment
.netcoreapp3.1
The text was updated successfully, but these errors were encountered: