使用在本地机器上运行良好的实时发布的 asp.net 核心默认身份验证并放置在不工作的天蓝色中,发生错误。
asp.net 核心:使用 3.0
appsetting.json
{
"ConnectionStrings": {
"DefaultConnection": "SERVER=servername;INITIAL CATALOG=catlogname;PERSIST SECURITY INFO=FALSE;USER ID=dbname;PASSWORD=****;MULTIPLEACTIVERESULTSETS=FALSE;ENCRYPT=TRUE;TRUSTSERVERCERTIFICATE=FALSE;CONNECTION TIMEOUT=30;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
启动设置.json
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:62632",
"sslPort": 44336
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"LabOrg": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}