When loading a test project from a network drive, Visual Studio builds the projects fine, but when running the test project Visual Studio shows the error:
“Error loading \\\XYZ\Main\XYZ.Framework.Test\bin\Debug\XYZ.Framework.Test.dll: Could not load file or assembly ‘file:///Z:\Projects\XYZ\Main\XYZ.Framework.Test\bin\Debug\XYZ.Framework.Test.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)” in the output window and does not continue.
The solution is to set COMPLUS_LoadFromRemoteSources = 1 in the environment variable.