📜  asp.net core web api Microsoft.Data.SqlClient.SqlException (0x80131904): - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.352000             🧑  作者: Mango

代码示例1
"ConnectionStrings": {
    "DefaultConnection": "Server=192.168.1.XXX\\SQL2012; Initial Catalog=IBCOREDB_XXX; User ID=XXXX;Password=XXXXX;",
  },

// check the connectionString if it's correct sometimes it can lead to an connect error