# MS Test missing after update

**URL:** https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536
**Category:** Discussion
**Created:** [January 19, 2017, 11:16am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536 "2017-01-19T11:16:42Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 19, 2017, 11:16am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/1 "2017-01-19T11:16:42Z")

</div>

We updated from 1.8.0.x to 1.8.1.256.  
  
After that our builds hang up at testing stage because of:  
  
The expression [’$Agent.MSTest.VisualStudio.2013.Path$’ exists] evaluated False. ‘$Agent.MSTest.VisualStudio.2013.Path$’ does not exist.  
The same for MSTest Studio 2010.  
  
This is shown by the agent compat matrix. for sure, everything is installed.  
  
Well, even after adding a custom property to the agent, the stages start initializing but stop with the following:  
  
The executable was not found at path “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE”.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 20, 2017, 2:26am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/2 "2017-01-20T02:26:57Z")

</div>

Hi Christian,  
  
Thank you for reporting this. It looks like we have introduced a bug reading correct path from the registry when adding MSTest.VisualStudio.2017 support. Is it possible that Visual Studio is installed to a different directory on your agent?  
  
Can you check the key HKEY\_LOCAL\_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\ in the registry&nbsp;for a InstallDir value? I suspect this is different than C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE and that your mstest.exe is located in a different installation folder.  
  
We’ll try to get a new build out today with a fix for this. Meanwhile, if you can find the location of mstest.exe on your agent, then set your MSTest.VisualStudio.2013.Path custom property to the full path including the filename.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 23, 2017, 8:47am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/3 "2017-01-23T08:47:10Z")

</div>

we have changed nothing. server and agent are the same machine. i just updated the version.   
 All registry keys and paths are correct.   
  
 The property itself isn’t shown in the agent properties. so i created a custom property an the agent with the hardcoded path (as shown above).   
 However, then is fails too with saying: The executable was not found at path “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE”.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 23, 2017, 9:23am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/4 "2017-01-23T09:23:10Z")

</div>

Hi Christian,  
  
We don’t think that you have changed anything. We think that your mstest.exe has always been installed to a different folder.  
  
There is a bug. The previous version was reading the path from the registry, but &nbsp;the later version fails to read the path from the registry and only looks for&nbsp;“C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe”. &nbsp;We will get a fix out for this bug soon, we just need to do some further testing on another fix first.&nbsp;  
  
This fix will only work of your mstest.exe is installed to another folder (e.g. not C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE)&nbsp;and that folder is in the registry under HKEY\_LOCAL\_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\InstallDir.  
  
Can you confirm this?

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 23, 2017, 9:28am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/5 "2017-01-23T09:28:01Z")

</div>

the studio 2013 is intalled in “C:\Program Files (x86)\Microsoft Visual Studio 12.0” … so (i’ve checked this right now) mstest.exe is existing in “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe”.   
  
 ANd the INSTALLDIR on in “HKEY\_LOCAL\_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0” points to “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE”.   
  
 so as i understand your current answer, i cannot confirm this here. maybe its simply the file casing?

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 23, 2017, 9:55am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/6 "2017-01-23T09:55:01Z")

</div>

OK, this is odd. It’s working for us with mstest.exe in that &nbsp;path. The file case should not matter at all.   
  
Can you try changing your custom property collection to the full path? e.g. &nbsp;“C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe” rather than&nbsp;“C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE”

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 23, 2017, 10:12am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/7 "2017-01-23T10:12:19Z")

</div>

i’ve changed the path to the full exe, now it works. here is my property defined for the single agent:   
  
 [http://pasteboard.co/ptj9Tex5Q.png](http://pasteboard.co/ptj9Tex5Q.png)

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 23, 2017, 10:20am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/8 "2017-01-23T10:20:35Z")

</div>

to verify that, i removed the property from the agent, now i get the results from first post:   
  
 [http://pasteboard.co/ptsjBqZKK.png](http://pasteboard.co/ptsjBqZKK.png)

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 23, 2017, 11:48am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/9 "2017-01-23T11:48:15Z")

</div>

How about if you remove the custom property then click the Refresh button? Are there are errors in the Continua event log?

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 23, 2017, 11:59am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/10 "2017-01-23T11:59:41Z")

</div>

i already removed the property. refreshing does nothing. no new entries in den event log.   
 however, i found a message 4 days ago that sounds strange but i don’t know if it has something to do with da.   
 i also restarted the agent service.   
  
 Message:   
  
 Agent Controller   
  
 Error getting agent properties from a batch of 30 collectors for agent: ‘nemesis’ as a connection could not be established on nemesis:localhost. Make sure the port has been excluded from any firewall enabled on the target machine.   
  
 This event has been reported 2 times.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [January 24, 2017, 7:49am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/11 "2017-01-24T07:49:38Z")

</div>

Hi Christian,  
  
We just uploaded version 1.8.1.264 to the downloads page. This includes fixes for the registry reading of the import path. This doesn’t however seem to be the issue in your case so we’ve also added some debug logging to the property collector.   
  
Please install and then try removing your custom property collector. If the issue persists, we would appreciate it if you could enable [debug logging](http://wiki.finalbuilder.com/display/continua/Debug+Logging)&nbsp;on your agent and send us a copy of the agent debug log once it has been running for a few minutes.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [January 24, 2017, 8:44am UTC](https://www.finalbuilder.com/forums/t/ms-test-missing-after-update/5536/12 "2017-01-24T08:44:57Z")

</div>

My both MSTest properties (vs2010 and vs2013) are back. So your fix also worked for me.
