I have a load test that uses Key Vault
to pre-authenticate web requests.
As soon as the code tries to call the method that uses KeyVaultClient
class inside, the following exception throws:
System.TypeLoadException: 'Method 'get_SerializationSettings' in type 'Microsoft.Azure.KeyVault.KeyVaultClient' from assembly 'Microsoft.Azure.KeyVault, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
I have tried to downgrade the KeyVault nuget to the version 2.0.6
, but I receive the same error, with version 2.0.0.0.
I am using .NET framework 4.7.2 and Visual Studio 2017 v.15.9.7
UPDATE: The issue appears when the nuget Microsoft.Rest.ClientRuntime nuget (referenced by Microsoft.Azure.KeyVault) is updated to version 2.3.20. If I roll it back to v. 2.3.18, the load test works fine.