There may be a few reasons behind the error which you can only identify by debugging. You can try to debug this error using the steps below:
- Navigate to the root directory of the application using CMD
- Run the application using the command
dotnet run (yourApplicationName).dll
If there are any errors, they should appear in the output.
Alternatively, you can check “Event Viewer” (search Event Viewer using Windows search) and navigate to
- Windows Logs
- Application
Update:
dotnet (yourApplicationName).dll
and check http://localhost:5000/ for error