I encountered an issue while running the Visual Studio 2019 with the project created in ASP.NET Core in C# language. The issue mainly showing errors as “Failed to launch debug adapter” and “The program ‘xxxxx’ has exited with code -1 (0xffffffff)”.
I created a project using ASP.NET Core and it was running properly with Visual Studio 2019. After I closed project and shut down my computer, the next time when I try open project and try to run, it was failing and visual studio was crashing. There was a error window showing issue details as
One or more errors occurred.
Failed to launch debug adapter. Additional information may be available in the output window.
The operation was cancelled
Above error was suggesting me to check output window. And the output window was showing
“The program ” has exited with code -1 (0xffffffff).”
“The thread 0x3d14 has exited with code 0 (0x0).”
To solve above issue I tried to Stop Site in IISExpress background process of system tray for the targeted project. Then I exited the IISExpress background process itself as shown in below screenshot.
So solution worked for me is that exiting the IISExpress background process.
If we face any issue that was un predictable or un usual like above issue, where project was running properly and after opening computer and visual studio next time, it was not working properly. This kind of un usual issues most of the time required simplest fix.