title: TFSBuild / Release Manager: The directory name is invalid
body: <p>I have a continuous integration build that used to run fine, but began giving me the following exception:</p>
  
  <p>This exception is from the build agent, </p>
  
  <blockquote>
    <p>Process each ConfigurationsToRelease</p>
    
    <blockquote>
      <p>Release the build</p>
      
      <blockquote>
        <p>Run the Release Management build Process for the current configuration:
        Exception:</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <pre><code>Exception Message: The directory name is invalid (type Win32Exception)
  Exception Stack Trace:
  Server stack trace: 
  at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
  at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.ProcessWrapper.Start()
  at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.InvokeProcessInternal.RunCommand (AsyncState state)
  at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] 
  args, Object server, Object[]&amp; outArgs
  at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, 
  IMessageSink replySink)
  Exception rethrown at [0]: 
  at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
  at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData&amp; msgData)
  at System.Func`2.EndInvoke(IAsyncResult result)
  at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution
  (AsyncCodeActivityContext context, IAsyncResult result)
  at 
  System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
  </code></pre>
  
  <p>This is using the default build template and it seemed to have started randomly. The release never actually hits the Release Management and never throws an exception or Roll Back there. It seems to die as it should be hitting Release Management.</p>
  
  <p>I've checked the drop folder and everything is there as it should be. Permissions are still correct. I don't know what folder it's looking for.</p>
  
  <p>Has anyone had any experience with this or any ideas of where to begin looking?</p>