2017-07-26 74 views
2

当我到达线new DocumentClient(new Uri("https://192.168.30.104:10251"), _key)时,我得到bcrypt.dll not found
我使用VS为Mac,latests版本和DocumentDb.Core金块包版本1.3.2(最新版本)...VS for MAC和DocumentDb.Core - BCrypt.DLL丢失

我参加了一个射击和降级到1.0.0版本,但我得到了同样的错误...

堆栈跟踪是:

在Microsoft.Azure.Documents.SecureStringHMACSHA256Helper.NativeMethods.BCryptOpenAlgorithmProvider(IntPtr的& algorithmHandle,字符串algorithmId,IntPtr的实施,UInt32的标志)
在Microsoft.Azure .Documents.SecureString HMACSHA256Helper..ctor(SecureString的base64EncodedKey)
在Microsoft.Azure.Documents.Client.DocumentClient..ctor(URI serviceEndpoint,SecureString的AUTHKEY,ConnectionPolicy connectionPolicy,Nullable`1 desiredConsistencyLevel)

EDIT1
我将代码邮寄给朋友,并且他在常规VS 2017上运行它并且没有错误

+0

一个简单的谷歌搜索建议,如果您使用'DocumentClient'的构造函数不使用'SecureString',那么它可能工作... – DavidG

+0

@DavidG恰恰......我只是想通了......来到这里回答这个问题,并阅读你的评论...继续并将其作为回答发布! – Leonardo

回答