Visual Studio Test won't run over a network share

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).

visual-studio-2010
networking
testing
share
asked on Stack Overflow Jul 13, 2010 by gouderadrian • edited Jul 13, 2010 by James McNellis

3 Answers

10

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" />
    ...
answered on Stack Overflow Jul 13, 2010 by gouderadrian • edited Oct 24, 2013 by Mark Hildreth
1

The gouderadrian's anwser did not worked for me. I am on a VirtualBox machine with Windows 7 64 bits and Visual Studio 2012.

I had to move the output to a local folder : open the unit tests project properties and in the Build tab, browse the Output path to a local folder. The tests are now detected and can be run.

answered on Stack Overflow Jan 11, 2014 by Dude Pascalou • edited May 23, 2017 by Community
0

For Visual Studio 2010 Express for Windows Phone the file you're looking for has the name VDPExpress.exe.config.

MS's docs here: http://msdn.microsoft.com/en-us/library/dd409252.aspx

answered on Stack Overflow Dec 7, 2010 by Robin

User contributions licensed under CC BY-SA 3.0