The Kestrel test

A quick and effective way to check whether the application is working properly is to skip IIS entirely and run it directly on Kestrel. Doing this is just as easy as opening the application root folder on the Web Server, locating the <ProjectName>.dll file, and executing it with (or without) administrative rights using the following command:

> dotnet <ProjectName>.dll

As soon as we do this, the web application will bootstrap from the command-line; once it completes, we should be able to test the application by opening a web browser and pointing it to http://localhost:5000/, 5000 being the default TCP listening port for Kestrel:

If the application completes its boot phase and starts running, the issue is most likely related ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.