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.
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 ;).
Restarting Visual Studio solved this issue for me.
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.
Clean the solution and try again. See Visual Studio Forum for details. It helped in my case.
Try to check your depencency packages and references and try to ensure that all is ok. I fix this problem delete unnecessary and broke dependencies.
User contributions licensed under CC BY-SA 3.0