------ Discover test started ------Could not load file or assembly 'file:///U:\Repos\Scheduler\Scheduler\Scheduler.Web.Tests\bin\Debug\Scheduler.Web.Tests.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)========== Discover test finished: 0 found (0:00:00.5040504) ==========
It took some digging, and a few failed attempts at other suggested solutions, but I finally found the workaround:
- Open a command prompt and type "setx COMPLUS_LoadFromRemoteSources 1"
- or
- Create an environment variable named COMPLUS_LoadFromRemoteSources
- Set the value to 1
- Restart Studio
Source: https://connect.microsoft.com/VisualStudio/feedback/details/502353/running-unit-tests-from-network-drive
Incidentally, I came across another suggested fix that involved changing a "LoadFromRemoteSources" value in the devenv.exe.config file, but this did not work for me. The Environment Variable did the trick.
Incidentally, I came across another suggested fix that involved changing a "LoadFromRemoteSources" value in the devenv.exe.config file, but this did not work for me. The Environment Variable did the trick.
It really helped! Thanks a lot!
ReplyDeleteBeen trying to solve this issue for hours! Finally found this, and it worked for me! Thanks!!
ReplyDelete