ASP.NET Core backend and web server

I am currently writing a backend for my web project. I wrote a REST service and used ASP.NET Core to host the files. When using the debugger inside of Visual Studio, I am getting a console and shortly after debug/info messages from the server (it says Microsoft.Hosting.Lifetime).

The problem is that I want to execute the program outside of the IDE, but when I am starting it standalone, it just shows an empty console and nothing happens.

What must I do to host the REST service and web server outside of the IDE?

1 answer

  • answered 2022-01-13 06:15 mohammad asadi

    try this way Change Run To IIS

    enter image description here

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum