Jason
Jason

Reputation: 2617

FileLoadException Access is denied when running Docker Compose project in Visual Studio 2019

I have a multi-project solution using Docker Compose that I work on in Visual Studio 2019 using .NET Core 2.2. Until this morning it has worked fine. All of a sudden I'm getting the following error when I try and run the project.

An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module.: 'Could not load file or assembly 'Microsoft.AspNetCore.Hosting.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Access is denied.'

There have been a couple of Windows updates in the last day or so (KB4540673 and KB4537572). I believe this is a Visual Studio issue as I ran the project using Docker Compose directly from the command line and it worked fine. It also worked fine when I tested a deployment to a staging environment. I've tried the following:

Any thoughts on what might be causing this or what else I can try?

Upvotes: 2

Views: 420

Answers (1)

Zoltán B
Zoltán B

Reputation: 36

I had the same problem. After uninstalling docker desktop 2.2.0.4 and installing 2.2.0.3 the problem disappeared. (Burned me one day...)

Upvotes: 2

Related Questions