【问题标题】:How to solve issue with adding nuget packet to .net core project in os x?如何解决在 os x 中将 nuget 包添加到 .net 核心项目的问题?
【发布时间】: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


    【解决方案1】:

    有正确的数据包

    System.Security.Cryptography.OpenSsl

    我必须按照https://www.microsoft.com/net/core#macos 教程中的说明安装 OpenSSL

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-12
      • 1970-01-01
      • 2020-12-21
      • 2013-02-21
      • 1970-01-01
      • 2017-09-26
      • 2018-01-23
      相关资源
      最近更新 更多