c# - Azure Key Vault .NET - 找不到方法

标签 c# azure encryption azure-keyvault always-encrypted

我想在 .NET 应用程序中使用 Always Encrypted SQL 2016 DB 和 Azure Key Vault 来存储加密 key 。到目前为止我一直在关注这篇文章: https://blogs.msdn.microsoft.com/sqlsecurity/2015/11/10/using-the-azure-key-vault-key-store-provider-for-always-encrypted/

但是当我到达文章中提供的这行代码时,我收到异常:

SqlColumnEncryptionAzureKeyVaultProvider azureKeyVaultProvider =
new SqlColumnEncryptionAzureKeyVaultProvider(GetToken);

异常(exception)情况是:

Additional information: Method not found: 'Void Microsoft.Azure.KeyVault.KeyVaultClient..ctor(AuthenticationCallback)'.

我检查了我的引用资料,一切似乎都已就位。 GetToken认证回调方法也在那里。

有人可以帮忙吗?谢谢。

最佳答案

这似乎是最新的 Microsoft.Azure.KeyVault nuget 包的问题。 Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider 包依赖于 Microsoft.Azure.KeyVault v 1.0.0,如果安装最新版本 (v 2.0.6),它会阻止 SqlColumnEncryptionAzureKeyVaultProvider。将 Microsoft.Azure.KeyVault 包降级到 v 1.0.0 就可以了...

关于c# - Azure Key Vault .NET - 找不到方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41118220/

相关文章:

azure - 如何在 Windows Azure Active Directory 身份验证后获取访问 token

azure - AKS 无法拉取 ACR 图像 ImagePullBackOff

apache-spark - Google Dataproc 集群内加密

java - 使用 RSA 的加密套接字连接 java(IllegalArgumentException : Illegal base64 character 10)

c# - 抑制 Windows Mobile 6 中的操作系统消息

c# - 检查设备更改(添加/删除)事件

json - Arduino API 和 Json 向 azure 发送信息

c# - 深度复制 ASP.NET GridView

c# - 数据库中已经有一个名为 'tableName' 的对象

c# - 由 ASP.NET Web 应用程序设置的 Cookie 有多安全?