Had the same problem when debugging project in Visual Studio 2019 Community. The error was "A debugger operation is taking longer than expected". I went to IIS Manager, Application pool stop and then start. You can also Recycle the Application pool