# Error building tests

**URL:** <https://www.finalbuilder.com/forums/t/error-building-tests/5965>\
**Category:** Bugs\
**Created:** [April 1, 2015, 2:36am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965 "2015-04-01T02:36:34Z")\
**Posts on this page:** 9\
**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:** [April 1, 2015, 2:36am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/1 "2015-04-01T02:36:34Z")

</div>

Since the new version, we cannot build tests anymore. The executable is still there. We have changed nothing. All properties were refreshed manually, nothing helped.  
  
The log now says “The executable was not found at path c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe.”

---

<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:** [April 1, 2015, 3:01am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/2 "2015-04-01T03:01:27Z")

</div>

hm ok, found a hardcoded path to mstext.exe in the Test action. Changed it to the property collector “2010”, now its working. However something seems to be different in version 1.6 because its not working anymore without touching the build server environment.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 2, 2015, 12:26pm UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/3 "2015-04-02T12:26:26Z")

</div>

Hmmm… wondering if this has something to do with the long filename support. Will investigate.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 2, 2015, 2:55am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/4 "2015-04-02T02:55:02Z")

</div>

I’ve not been able to reproduce this here, using hard code paths works fine, provided the exe actually exists on the agent. Did it perhaps run on a different agent that didn’t have mstest in that location?

---

<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:** [April 2, 2015, 9:51am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/5 "2015-04-02T09:51:07Z")

</div>

we have only one agent. just updated to version 1.6. and the first build failed with this message. 30 minutes ago, with version 1.5, it worked.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 10, 2015, 8:14am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/6 "2015-04-10T08:14:05Z")

</div>

We’re still investigating this, the error looks to be caused by the use of AlphaFS for long paths support.

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [April 10, 2015, 8:40am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/7 "2015-04-10T08:40:11Z")

</div>

Hi Christian Leh,   
  
 We are having a bit of trouble reproducing this issue locally. Would you be able to send through the settings your using on the test action that is failing. Also if any property collector values for the agent have been altered could you also include those please.

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [April 10, 2015, 9:14am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/8 "2015-04-10T09:14:47Z")

</div>

Hi Christian,   
  
 I believe we might have found the issue. If using the custom location for the MSTest executable, did the directory specified have a space before it? For example (without quotes):   
  
 " c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe"   
  
 If so then this would cause the error. Removing the space will get things working again. In the meantime we are looking at a fix which will resolve this issue.

---

<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:** [April 10, 2015, 9:20am UTC](https://www.finalbuilder.com/forums/t/error-building-tests/5965/9 "2015-04-10T09:20:29Z")

</div>

sounds good. not that urgent because the property collectors work fine.
