EFCore MAC - 无法找到名为 'AppleCryptoNative_SslCreateContext' 的入口点
EFCore MAC - Unable to find an entry point named '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 安装的人在搜索时也可能会错过这个答案 -
A connection was successfully established with the server, but then an error occurred during the pre-login handshake
正在清理我的项目(我个人删除了所有文件夹)并重建,排序!
当 运行
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 安装的人在搜索时也可能会错过这个答案 -
A connection was successfully established with the server, but then an error occurred during the pre-login handshake
正在清理我的项目(我个人删除了所有文件夹)并重建,排序!