"Could not load file or assembly Operation is not supported." On Mapped Network Drive


I have tried solutions from the following posts/sites:


Could not load file or assembly 'file://\[networkdrive]\Programming\Misc Projects\CSVSerializer\UnitTestProject1\bin\Debug\UnitTestProject1.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

This error occurs when trying to discover tests on my solution on a mapped network drive, on multiple devices, this occurs in vs2015 and vs2017. If I copy the solution and directories to the device itself, it works fine.

What I've tried:

  • Unblocking file: The DLLs are not blocked
  • Readonly: Not marked as readonly
  • loadFromRemoteSources: Enabled on vs2015 & 2017 on all devices
  • Using UNC paths instead of a mapped drive

Why a network drive?

To keep my project files in a central, redundant, backed up location that I can access from multiple devices without having to pull from source control and rebuild each time. To save space on VMs for large projects and assemblies.

This seems as a supported, and even anticipated way to use a project considering there is a VS flag just for this https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/loadfromremotesources-element

Why is this happening? Is there more info for this error? what can I do to troubleshoot the problem?

asked on Stack Overflow Feb 25, 2018 by Douglas Gaskell • edited Feb 25, 2018 by Douglas Gaskell

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0