How to figure out if the deployed Web APIs can run at all

If you encounter server errors such as HTTP 500 error, you can first try to find out if the Web APIs can run at all in the development environment.

Step 1: Go to the Web APIs location.

You will first need to go to the location where the Web APIs' binaries are located. For example:


and open a Console window based on here.

You can usually do this by Shift + Clicking on an empty region of the window:


It might be different in your system.

Step 2: Set the ASP.NET Core environment to Development.

Depending on the Command Line Interface you're using you might have to do this differently:

CMD.EXE

set ASPNETCORE_ENVIRONMENT=Development

PowerShell

$Env:ASPNETCORE_ENVIRONMENT = "Development" 

Step 3: Run the Web APIs.

Run the following command in the same CLI window:

.\ServerAPIs.exe

The Web APIs will start to launch.

If the application terminates abruptly, observe the output and look for the error that caused this and address it.