I have tried to deploy a asp.net core mvc app and a asp.net core WebApi to azure.
Both should be run on same url.
I have created a virtual directory under settings: "site\wwwroot\webapi"
And downloaded the publish settings.
I published the mvc app to:
Sitename: example
Destination URL: http://example.azurewebsites.net
The WebApi I published to:
Sitename: example/webapi
Destination URL: http://example.azurewebsites.net/webapi
But if i try to acces the URL http://example.azurewebsites.net/webapi
i get an Error 500:
The page cannot be displayed because an internal server error has occurred.
I have spend several hours to find a solution, but i could not fix it.