小编Dmi*_*Pro的帖子

System.TypeLoadException:从负载测试插件使用KeyVault时,方法“ get_SerializationSettings”

我有一个Key Vault用于预先验证Web请求的负载测试。一旦代码尝试调用KeyVaultClient内部使用类的方法,就会引发以下异常:

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. …

.net load-testing azure azure-keyvault visual-studio-2017

8
推荐指数
1
解决办法
1187
查看次数