代码之家  ›  专栏  ›  技术社区  ›  WickedW

EFCore MAC-找不到名为“AppleCryptoNative\u SslCreateContext”的入口点

  •  0
  • WickedW  · 技术社区  · 7 年前

    运行时

    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)
    

    1 回复  |  直到 7 年前
        1
  •  0
  •   WickedW    7 年前
    推荐文章