ef-core-2.1 - EFCore MAC - Unable to find an entry point named 'AppleCryptoNative_SslCreateContext'
问题描述
when running
dotnet ef database update --startup-project ../webapi/webapi.WebAPI.csproj
on my MAC 10.13.5
I get this error -
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)
I originally thought this was my local docker database was not available but when connecting to new database instance it still occurs, this was working yesterday.
解决方案
Whilst typing this I came across this, but thought would just add the answer as someone on a MAC EF Core install may miss that also when searching -
Cleaning my project (I personally deleted all the folders) and rebuilding, sorted it!
推荐阅读
- android - 比较两个 Android profiler trace
- mysql - 如何对 MySql 中的每个聚合函数应用不同的 GROUP BY
- linux - 一段时间后,EFS 以某种方式从 ec2 linux 服务器上卸载
- google-cloud-platform - PCI DSS 2020 Google Cloud 官方文档
- r - 一个节点产生错误:已达到超时:[www.website.com] 连接在 10001 毫秒后超时
- python - 在以 r+ 模式写入后使用 f.read 和 f.readline 时,Python 输出会发生变化
- python - 使用 for 循环 python 创建和修改数据框
- json - 从 SQL Server 2019 数据库表中的 json 字符串中提取多个值/级别
- javascript - 从 sequelize 中的现有模型创建迁移文件
- c++ - 带有 If 语句的 C++ 变量赋值