【发布时间】:2017-07-25 05:38:20
【问题描述】:
os x 中的 ASP.NET Core 项目连接到 MSSQL。
例外是:
System.Data.SqlClient.SqlException:连接成功 与服务器建立,但随后发生错误 登录前握手。 (提供者:SSL 提供者,错误:31 - 加密(ssl/tls)握手失败)---> System.TypeInitializationException:“加密”的类型初始化程序 抛出异常。 ---> System.TypeInitializationException:类型 'CryptoInitializer' 的初始化程序引发了异常。 ---> System.DllNotFoundException:无法加载 DLL 'System.Security.Cryptography.Native.OpenSsl':指定的模块 找不到。
我添加了数据包
System.Security.Cryptography.OpenSsl
但是在我添加之后,我遇到了同样的问题。我找不到带有“本机”System.Security.Cryptography.Native.OpenSsl, can find System.Security.Cryptography.OpenSsl only.的数据包
如何解决这个问题?.net
【问题讨论】:
标签: .net sql-server macos openssl nuget