Proccess info gives an error but a bat file does not
<p>I try to start ilasm from C# using class ProcessInfo</p>

<pre><code> string arguments = string.Format("\"{0}\" /exe /output:\"{1}\"  /debug=IMPL", ilFullFileName, exeFileFullName);
 ProcessStartInfo processStartInfo = new ProcessStartInfo(CILCompiler, arguments);
 processStartInfo.UseShellExecute = false;
 processStartInfo.CreateNoWindow = false;
 processStartInfo.WorkingDirectory = @"c:\Windows\Microsoft.NET\Framework\v4.0.30319\";
 using (Process process = Process.Start(processStartInfo))
 {
    process.WaitForExit();
 }
</code></pre>

<p>the arguments are:</p>

<pre><code>"path_to_il.il" /exe /output:"path_to_exe.exe"  /debug=IMPL
</code></pre>

<p>and then it gives me the error:</p>

<pre><code>The application was unable to start correctly (0xc0000007b). Click Ok to close the application.
</code></pre>

<p>The odd part of that is, when I do exactly the same actions manually using bat file </p>

<pre><code>"c:\Windows\Microsoft.NET\Framework\v4.0.30319\ilasm.exe"  "path_to_il.il" /exe /output:"path_to_exe.exe"  /debug=IMPL
pause
</code></pre>

<p>it does work.</p>

<p>What did I miss?</p>
