I had the same issue due to corrupted drivers but it happened while debugging, I fixed it by unchecking "use hardware graphic acceleration "
from Tools > options > environment
and followed the steps in this post:
https://thomas-barthelemy.github.io/2015/05/01/visual-studio-vshub/
Navigate to
"C:\Program Files (x86)\Common Files\Microsoft Shared\VsHub\1.0.0.0"
- Stop Visual Studio if started
rename Microsoft.VsHub.Server.HttpHostx64.exe to Microsoft.VsHub.Server.HttpHostx64.exe.bak
Create a copy of Microsoft.VsHub.Server.HttpHost.exe and rename it Microsoft.VsHub.Server.HttpHostx64.exe
Re-start Visual Studio