EFCore MAC - 找不到名为 'AppleCryptoNative_SslCreateContext' 的入口点



运行时

dotnet ef database update --startup-project ../webapi/webapi.WebAPI.csproj 

在我的 MAC 10.13.5 上

我收到此错误 -

System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'AppleCryptoNative_SslCreateContext' in shared library 'System.Security.Cryptography.Native.Apple'.
at Interop.AppleCrypto.SslCreateContext(Int32 isServer)
at System.Net.SafeDeleteSslContext.CreateSslContext(SafeFreeSslCredentials credential, Boolean isServer)
at System.Net.SafeDeleteSslContext..ctor(SafeFreeSslCredentials credential, SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteContext& context, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
--- End of inner exception stack trace ---
...
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)

我最初认为这是我的本地docker数据库不可用,但是当连接到新的数据库实例时,它仍然发生,这是昨天的工作。

在输入这个时,我遇到了这个,但认为只会添加答案,因为 MAC EF Core 安装上的某人在搜索时也可能错过它 -

已成功与服务器建立连接,但在登录前握手期间发生错误

清理我的项目(我个人删除了所有文件夹(并重建,排序!

相关内容

  • 没有找到相关文章

最新更新