-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net6 程序 从 版本2.6.100升级到3.0.100 后无法连接 sqlserver 提示证书无效 #992
Comments
.NET 链接数据库:证书链是由不受信任的颁发机构颁发的 |
我已经踩坑了,在连接字符串里加入 “Encrypt=True; TrustServerCertificate=True;” |
使用楼上的方法也不能解决 |
如果解决不了。直接 FreeSql.Provider.SqlServer在.netstandard2.0,.net 5.0,.net6.0时引用的是 参考 https://docs.microsoft.com/zh-cn/troubleshoot/sql/connect/error-message-when-you-connect 如果解决不了,就自行搜索相关问题。或按照楼上所说方法解决。
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net60' or '$(TargetFramework)' == 'net50'">
<PackageReference Include="Microsoft.Data.SqlClient" Version="4.0.0" />
</ItemGroup> |
经过测试,总结经验如下,给有同样问题的网友参考,如有错误,请指正: 升级FreeSql和FreeSql.Provider.SqlServer时
|
连接字符串增加Encrypt=False;也可以 |
楼上说的用方法使用后无效果, |
问题描述及重现步骤:
现在只有回退到 2.6.100
数据库的具体版本
安装的包
.net framework/. net core? 及具体版本
The text was updated successfully, but these errors were encountered: