{"id":1273,"date":"2014-05-21T00:01:00","date_gmt":"2014-05-21T00:01:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2014\/05\/21\/test-controllers-are-not-visible-or-marked-offline-in-mtm-when-multiple-versions-of-mtm-are-installed\/"},"modified":"2019-02-14T17:49:06","modified_gmt":"2019-02-15T01:49:06","slug":"test-controllers-are-not-visible-or-marked-offline-in-mtm-when-multiple-versions-of-mtm-are-installed","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/test-controllers-are-not-visible-or-marked-offline-in-mtm-when-multiple-versions-of-mtm-are-installed\/","title":{"rendered":"Test controllers are not visible or marked offline in MTM when multiple versions of MTM are installed"},"content":{"rendered":"<p>When you have two or more versions of Visual Studio installed on a single machine and you try to use the newer version of mtm to connect to an older version of Test Controller, the Test Controller shows offline.<\/p>\n<p>The event log shows the following error message:<\/p>\n<p style=\"padding-left: 30px\"><span style=\"font-size: x-small\">Log Name: Application<\/span><br><span style=\"font-size: x-small\">Source: VSTTExecution<\/span><br><span style=\"font-size: x-small\">Date: 5\/20\/2014 2:58:45 AM<\/span><br><span style=\"font-size: x-small\">Event ID: 0<\/span><br><span style=\"font-size: x-small\">Task Category: None<\/span><br><span style=\"font-size: x-small\">Level: Error<\/span><br><span style=\"font-size: x-small\">Keywords: Classic<\/span><br><span style=\"font-size: x-small\">User: N\/A<\/span><br><span style=\"font-size: x-small\">Computer: machineName<\/span><br><span style=\"font-size: x-small\">Description:<\/span><br><span style=\"font-size: x-small\">The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.<\/span><br><span style=\"font-size: x-small\">If the event originated on another computer, the display information had to be saved with the event.<\/span><br><span style=\"font-size: x-small\">The following information was included with the event:<\/span><br><span style=\"font-size: x-small\">(mtm.exe, PID 4420, Thread 8) ControllerConnectionManager : InternalConnect : System.InvalidCastException: Unable to cast transparent proxy to type &#8216;Microsoft.VisualStudio.TestTools.Controller.ControllerObject&#8217;.<\/span><br><span style=\"font-size: x-small\"> at Microsoft.VisualStudio.TestTools.Controller.ControllerConnectionManager.InternalConnect(ControllerConnectionInfo controllerConnectionInfo)<\/span><br><span style=\"font-size: x-small\">the message resource is present but the message is not found in the string\/message table<\/span><\/p>\n<p>Let&rsquo;s say you have Visual Studio 2012 and Visual Studio 2013 installed on one machine and you are trying to connect to Test Controller 2012. In that case, you can use the following workarounds:<\/p>\n<p>1)&nbsp;Use assembly redirection in mtm.exe.config. Add the following under &lt;assemblyBinding&gt; node in mtm.exe.config v12.0 (C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEmtm.exe.config):<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&#8221;Microsoft.VisualStudio.QualityTools.Common&#8221; publicKeyToken=&#8221;b03f5f7f11d50a3a&#8221; culture=&#8221;neutral&#8221;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingRedirect oldVersion=&#8221;11.0.0.0&#8243; newVersion=&#8221;12.0.0.0&#8243;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/dependentAssembly&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&#8221;Microsoft.VisualStudio.QualityTools.ControllerObject&#8221; publicKeyToken=&#8221;b03f5f7f11d50a3a&#8221; culture=&#8221;neutral&#8221;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingRedirect oldVersion=&#8221;11.0.0.0&#8243; newVersion=&#8221;12.0.0.0&#8243;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/dependentAssembly&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&#8221;Microsoft.VisualStudio.QualityTools.ExecutionCommon&#8221; publicKeyToken=&#8221;b03f5f7f11d50a3a&#8221; culture=&#8221;neutral&#8221;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingRedirect oldVersion=&#8221;11.0.0.0&#8243; newVersion=&#8221;12.0.0.0&#8243;\/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/dependentAssembly&gt;<\/p>\n<p>&nbsp;2) Use mtm 2012 to see online controllers<\/p>\n<p><span style=\"background-color: #ffff00\">Basically, you need to use assembly redirection for the above three assemblies and let them point to the version of mtm client that you are using.<\/span><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you have two or more versions of Visual Studio installed on a single machine and you try to use the newer version of mtm to connect to an older version of Test Controller, the Test Controller shows offline. The event log shows the following error message: Log Name: ApplicationSource: VSTTExecutionDate: 5\/20\/2014 2:58:45 AMEvent ID: [&hellip;]<\/p>\n","protected":false},"author":151,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>When you have two or more versions of Visual Studio installed on a single machine and you try to use the newer version of mtm to connect to an older version of Test Controller, the Test Controller shows offline. The event log shows the following error message: Log Name: ApplicationSource: VSTTExecutionDate: 5\/20\/2014 2:58:45 AMEvent ID: [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/1273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/151"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=1273"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/1273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=1273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=1273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}