I have a .NET core 2.0 web application running successfully as an Azure app service.
To save money/complication, I would like to run its public API on the same domain, as a virtual application i.e. www.mysite.com/api
However, when I release to the virtual application, and then try to access it, I simply get an error message saying:
"The page cannot be displayed because an internal server error has occurred."
I am an experienced .NET framework developer, but this is my first .NET core project, so I am a little unsure how to debug this.
Just to confirm, I have a .NET core website and a .NET core web API, where the web API is meant to live in the "/api" virtual application. I have setup the virtual application within the Azure app service as "site\api" (with the main website being "site\wwwroot")
The API has its own web.config etc. as expected. I am guessing this is all caused by some config I haven't done, but I am unsure as to what exactly.