title: Executing vstest.console.exe remotely results in exit code: 559038737
body: <p>We are trying to run unit tests on a remote windows machine by invoking vstest.console.exe from within Java (using Apache's commons library).</p>
  
  <p>During execution, we are seeing the following logs:</p>
  
  <pre><code>Command being executed: vstest.console.exe testProject.dll 
  
  -559038737
  </code></pre>
  
  <p>The value "-559038737" is the exit code from the command indicating that it has failed.</p>
  
  <p>"vstest.console.exe testProject.dll " when run directly on the command line executes as expected. We also tried executing the Java command which internally invokes this one and that too worked as expected.</p>
  
  <p>To debug the issue, we've tried the following:</p>
  
  <ol>
  <li>Redirecting the stdout and stderr to a file to see if there is some additional information. </li>
  <li>Increasing the heap size to 1024m. </li>
  </ol>
  
  <p>Neither helped.</p>
  
  <p>What can I try to debug this issue further?</p>