.Net Core 5 project exits after exception is thrown

  Uncategorised

I’m not exactly sure where the problem can come from. Maybe its IISExpres, the debugger, my code or Visual Studio.

I have a .net core 5 Web API project with UseExceptionHandler implemented.

After the first exception the exception is caught and a message is returned but after that whole debugger stops running and i have to build & start the project again.

This is different behaviour than the other API project i have. Exceptions in that project will be caught and a response will be returned. But the project wont exit, i cant do a new request without restarting.

It’s not much to start with, but i can provide more info if necessary

Source: Visual Studio Questions

LEAVE A COMMENT