Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017: A fatal error has occurred and debugging needs to be terminated

When executing unit tests in debugging mode, I get the following error message:

A fatal error has occurred and debugging needs to be terminated. For more 
details please see the Microsoft Help and Support web site. 
HRESULT=0x8000ffff. ErrorCode=0x0.
like image 943
MovGP0 Avatar asked Nov 03 '17 10:11

MovGP0


3 Answers

So my steps to fix the issue,

1- [Preventive action] Update the Visual studio 2017 , from the yellow flag notification or from

Tools >> Extensions & Updates >> Updates >> visual studio marketplace.

2- Search in your test solution for launchsettings.json file and remove it.

3- Clean the test solution .

4- Rebuild the project .

5- Make a cup of coffee ;).

like image 159
Ahmed Elbatt Avatar answered Oct 23 '22 21:10

Ahmed Elbatt


Restarting Visual Studio solved this issue for me.

like image 2
Akshay Khot Avatar answered Oct 23 '22 23:10

Akshay Khot


Cleaning the solution didn't work for me, and I couldn't find a launchsettings.json.

What eliminated the error for me: Changing the Startup project to a project other than the test project, as mentioned in this MSDN forum post.

like image 1
System.Cats.Lol Avatar answered Oct 23 '22 21:10

System.Cats.Lol