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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With