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.
Fixed it with these simpler steps ;)
Try removing the directory : %userprofile%\vsdbg, it worked to me.
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.
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:
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.
User contributions licensed under CC BY-SA 3.0