I have a custom workflow activity that is run in TFS 2010 Build that uses Process and ProcessInfo classes to start a custom .exe that hosts a WCF service for our unit tests.
When the custom .exe is run from my workflow activity that uses Process and ProcessInfo classes to start it nothing works and my unit tests don't pass. But if I start the process directly using a .bat file on the build server all the tests pass fine.
Is there a difference between running a process from the Process class in .Net as opposed to running it directly with a .bat file?