When I run CodedUI Test from a small Console tool via vstest.console.exe
from a scheduled task I sometimes see this error message on different PCs:
error : Could not load file or assembly 'file:///C:\foobar.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Why/what is this not supported?
Right click on the Dll and unblock it.