Visual Studio 2017 HRESULT: 0x80004004

11

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.

visual-studio
docker
asp.net-core
visual-studio-2017
asked on Stack Overflow Aug 7, 2017 by Mitko Rusev

4 Answers

11

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
answered on Stack Overflow Sep 13, 2017 by Stephane
4

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

1

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.

answered on Stack Overflow Sep 14, 2017 by Andrea Borraccetti
0

The root problem that caused this error for me was that I was originally running Windows 10 Home Edition and some residual settings from that were causing the error.

Solution:

  1. Uninstall Docker for Windows
  2. Uninstall all versions of Visual Studio
  3. Delete all settings folders for Visual Studio in %UserProfile%, %ProgramData%, and %AppData%
  4. Upgrade to Windows 10 Pro (Windows Button >> Settings >> Update & Security >> Activation >> Change product key and enter a Windows 10 Pro key if you own one OR purchase an upgrade to Windows 10 Pro with the instructions on the same screen)
  5. Install Visual Studio 2017 Professional
  6. Install Docker for Windows

Summary:

Even though I upgraded to Windows 10 Pro, enabled Hyper-V and containers, and installed Docker for Windows, Visual Studio 2017 still thought I was on Windows 10 Home and my docker project wouldn't build or load. With some tweaks I still got the error mentioned in the question. Following the steps above I was able to solve the problem.

answered on Stack Overflow Jan 28, 2018 by Paul Stegler

User contributions licensed under CC BY-SA 3.0