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 2022Asp.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

改空字符數組聯系:

jia(encrypt=true;trustservercertificate=true;)jike:


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



友情鏈接:

  • 二維碼
  • 掃一掃加關注
——信陽市速全線上科技發展較少集團公司—— 音樂版權因此:信陽市速全網格科技有效公司的有效公司的
亚洲精品视频在线免费_久久经典免费视频_古典武侠狠狠色综合_国产精品欧美日韩一区二区