views:

125

answers:

1

When I try to run my test suite, which works fine under Visual Studio 2008, I get the following error in the Output window:

Error loading J:\VBProjects2010\Libraries\PFTest\PFTest\bin\Debug\PFTest.dll: Could not load file or assembly 'file:///J:\VBProjects2010\Libraries\PFTest\PFTest\bin\Debug\PFTest.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Note that these same tests can be viewed in the Test View windows, and run well under Visual Studio 2008, but fail only under VS2010.

Note that PFTest.dll is the test project's name, and the dll is the file created when I compile (which compiles ok).

+1  A: 

strong textIn addition to the above, I realised I could not step through code either since the compiled dlls and exe could not be loaded from the shared drive.

This solved the problem. Edit C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config

Add [loadFromRemoteSources enabled="true"/] under [runtime] so that it looks like this:

[runtime]

    [loadFromRemoteSources enabled="true"/]

    [UseSmallInternalThreadStacks enabled="true" /]

(replace [ and ] with angle brackets.)

Adrian
The config file is under c:\Program Files(x86)\Microsoft Visual Studio 10.0\Common7\IDE for those with a 64 bit virtual machine.
Rap