Visual Studio Test won't run over a network share
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:VBProjects2010LibrariesPFTestPFTestbinDebugPFTest.dll: Could not load file or assembly 'file:///J:VBProjects2010LibrariesPFTestPFTestbinDebugPFTest.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).
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 FilesMicrosoft Visual Studio 10.0Common7IDEdevenv.exe.config
Add <loadFromRemoteSources enabled="true"/>
under <runtime>
so that it looks like this:
<runtime>
<loadFromRemoteSources enabled="true" />
<UseSmallInternalThreadStacks enabled="true" />
...
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.
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
链接地址: http://www.djcxy.com/p/7678.html上一篇: 从远程访问共享文件(UNC),Non