VS 2019 ASP. NET Core 3.1
Я разработал веб-приложение локально, и теперь я готов к развертыванию в Azure Staging Environment.
My Web Изначально приложение было Net (не Core), и у меня не возникло проблем с его развертыванием.
Как настроить процесс развертывания на использование «промежуточной» среды?
Мои параметры запуска. json содержит следующее:
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:59000",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
У меня есть appSettings.Staging. json, указывающий на промежуточную базу данных ...
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"ConnectionStrings": {
"DbConnection": "Data Source=myapp.database.windows.net;Initial Catalog=MyAppCoreStaging;user id=myappstepadmin;password=mypassword;MultipleActiveResultSets=True"
}
}
Но я не уверен, как сказать использовать Staging при развертывании.
В момент развертывания браузер запускается на странице, и я получаю:
HTTP Error 500.30 - ANCM In-Process Start Failure
Common solutions to this issue:
The application failed to start
The application started but then stopped
The application started but threw an exception during startup
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028265
Есть ли что-то, что мне нужно настроить Azure использовать Staging?