【发布时间】:2020-04-12 18:49:38
【问题描述】:
我将我的 .net 核心 Web api 部署到 azure,现在每当我向它发出请求时它都会响应 500。 它使用实体框架,数据库也部署在 azure 上。它在 localhost iis express 上运行良好。这是我的 appsettings.json。出于安全原因,我更改了连接字符串,它实际上具有实际值。如何获取有关此错误的更多信息或如何解决?
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ConnectionString": {
"prodSchoolProjectDB": "Server={serverName},1433;Initial Catalog=SchoolProjectDB;Persist Security Info=False;User ID={databaseId};Password={databasePassword};MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"AllowedHosts": "*"
} ```
【问题讨论】:
标签: azure asp.net-core .net-core asp.net-core-webapi