Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 HRESULT: 0x80004004

I was perfectly running an ASP.NET Core project in a docker container, but then I created another project in the same solution, which was referenced by the first one.
When building, VS 2017 didn't complain. When debugging, VS says:
"Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"
Then I tried creating a new solution with new project (Only one this time). Same thing happened: Build successfull, debugging - impossible. Restarting computer did't work, neither VS with admin privilages.

How can I fix that? I am ready to screw the whole project and start all over, if needed. I appriciate any response. Thanks in advance.

like image 835
Mitko Rusev Avatar asked Aug 07 '17 21:08

Mitko Rusev


3 Answers

Try removing the directory : %userprofile%\vsdbg, it worked to me.

like image 76
Raúl Martín Ramos Avatar answered Oct 21 '22 03:10

Raúl Martín Ramos


Fixed it with these simpler steps ;)

  1. Reset Shared Drives in Docker for Windows. (Re-entering your credentials if needed by using the reset credentials link)
  2. Clean your VS solution and rebuild
  3. Debug
like image 23
Stephane Avatar answered Oct 21 '22 02:10

Stephane


Check the folder in your windows ~\vsdbg Probably are missing the correct files.

This occours because you didn't execute the add docker support in your current instance of visual studio.

like image 27
Andrea Borraccetti Avatar answered Oct 21 '22 02:10

Andrea Borraccetti