Freigeben über


Executing tests remotely using Visual Studio 2015 with Test Controller and Test Agent 2013 Update 5

Recently, some users have reported an issue while remotely executing tests from Visual Studio 2015 Update 2 with Test Controller and Test Agent 2013 Update 5. The test execution is skipped, and an error message is given in the output window:

'Unable to cast transparent proxy to type 'Microsoft.VisualStudio.TestTools.Controller.IControllerExecution'

Visual Studio 2015 fails to execute the tests remotely with Test Agent and Test Controller 2013 because it is not able to cast remote object due to different assembly versions of Visual Studio and Test Controller.  Users can perform the following steps on the machine with Visual Studio 2015 as a workaround to get unblocked:

  1. Navigate to the directory path '%systemdrive%\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow'.
  2. Make a backup of TE.ProcessHost.Managed.exe.config
  3. Replace the original file with the file shared on OneDrive.
  4. Restart Visual Studio 2015

**Note: For a x64 project, update TE.ProcessHost.Managed.exe.config present in '%systemdrive%\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\x64' directory.

After completing the above steps, remote test execution using Visual Studio 2015 with Test Controller and Test Agent 2013 should run fine.

This issue is fixed in Visual Studio 2015 Update 3.