Search code examples
dockervisual-studioasp.net-core

Visual Studio w/Docker has exited with code 4294967295 (0xffffffff)


On our new company laptops we are running into issues running containers in docker desktop from visual studio. We tried a bunch of things which were unsuccessful. Any help / thoughts would be great as we are running out of ideas.

.Net Core Version 6 / Asp.net Core (web api)

Running docker compose manually in cmd works and I'm able to hit the site. Running docker compose debug profile from visual studio results in:

enter image description here

The output window shows "The program '' has exited with code 4294967295 (0xffffffff)."

Docker desktop shows the container running but I can't grab logs from it or hit it in the url.

WSL is fine and everything is working there.

My home machine works great and i'm able to launch and debug containers.


Solution

  • Faced with identical error, I was able to resolve by deleting VSDBG debugger folder:

    %USERPROFILE%\vsdbg\vs2017u5
    

    After deleting the folder start Visual Studio debugger (F5) and as a result VSDBG debugger will be recreated

    Container Tools build properties https://learn.microsoft.com/en-us/visualstudio/containers/container-msbuild-properties?view=vs-2022