Развертывание веб-API ASP.NET Core, созданного с помощью чистой архитектуры, в Службе приложений Azure с использованием C#

Место общения программистов C#
Гость
Развертывание веб-API ASP.NET Core, созданного с помощью чистой архитектуры, в Службе приложений Azure с использованием

Сообщение Гость »


I am trying to deploy my ASP.NET Core Web API project that I created using Clean Architecture using my Azure Student portal account. The deployment is successful however when I navigate to the API's url endpoint it doesn't show the json object that I was expecting. I also checked the application event logs in Azure but found nothing.

Expected:


Изображение


Actual:


Изображение


The job records are stored in Azure's SQL Servers resource and when I ran the dotnet run, it lists all the records within the database. When I ran the command below it added the Release folders for each class libraries. I'm using Azure App Extension in VS Code to deploy the Web API.

Command:

Код: Выделить всё

dotnet publish -c Release


Изображение


Application Event Log:


Изображение



Источник: https://stackoverflow.com/questions/781 ... e-app-serv

Вернуться в «C#»