A connection was successfully established with the server

but then an error occurred during the login process



数据库学习 【2023-08-07 15:54】


Microsoft Visual Studio 2022

Asp.net core mvc 

DataBase first


用Scaffold-DbContext生成model时出错:


Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.

06JNT(TZ13P96LHU9DV(XTN.png

改字符串连接:

加(Encrypt=True;TrustServerCertificate=True;)即可:


Scaffold-DbContext  "Data Source=DBServer;Initial Catalog=DB1;User ID=sa;Password=1234;Encrypt=True;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models 



友情链接:
SQL数据库修复专家
  • 关注微博
    联系QQ
  • 二维码
  • 扫一扫加关注

——信阳市速全网络科技有限公司——

版权所有:信阳市速全网络科技有限公司

豫ICP备19030104号-2

av天堂中文版,欧美老熟妇又粗又大,进口免费偷拍网站,成人免费无码大片a毛在线,色婷婷亚洲婷婷亚洲最大,69国产精品自拍,老熟妇仓乱色网视频一区二区,淫骚大屁股艹穴Av在线,东京热av影院,亚洲国产色欲AV一级毛片片,国产色网在线观看,日本一区色网