Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core Web Application console closes immediately

I'm trying to run an ASP.NET Core Web Application using its console profile. The console opens and closes immediately so I get ERR_CONNECTION_REFUSED error in browser. Is it possible to find out why the console/host closes? There is nothing in event log and I've enabled stdout but it doesn't produce any output.

like image 360
dstr Avatar asked Dec 05 '22 16:12

dstr


1 Answers

Try to start you app from already open console window.

Run cmd, navigate to your project folder and execute dotnet run.

Your app will start and terminate, but console window will remain open and you will see exception (if any) or other output that may help you.

like image 61
Dmitry Avatar answered Dec 26 '22 10:12

Dmitry