title: Why does Process.Start(ProcessStartInfo) fail?
body: <p>We've developed a new WPF application, and I have had difficulty launching it from external C# script.</p>
  
  <p>While calling <code>Process.Start(ProcessStartInfo)</code> method with <code>ProcessStartInfo</code> object which is initialized with both <code>WorkingDirectory</code> and <code>FileName</code> successes, init the <code>FileName</code> property only fails to launch.</p>
  
  <p>This is not the case when calling any other application.<br/>
  My question - Does different approach to start process has different logic?</p>
  
  <p>See code for more details:</p>
  
  <pre><code> public void LaunchApp(){
  /********************************/
  /*      This code PASSES        */
  /********************************/
  var pStartInfoCalc1 = new ProcessStartInfo
      {
          FileName = @"C:\Windows\system32\calc.exe",
      };
  
  Process.Start(pStartInfoCalc1);
  
  /*****************************/
  /*  !!!This code FAILS  !!! */
  /*****************************/
  var pStartInfo1 = new ProcessStartInfo
      {
          FileName = @"C:\Program Files\MyAppFolder\MyApp.exe",
      };
  
  Process.Start(pStartInfo1);
  
  /********************************/
  /*      This code PASSES        */
  /********************************/
  var pStartInfo2 = new ProcessStartInfo
      {
          WorkingDirectory = @"C:\Program Files\MyAppFolder",
          FileName = @"MyApp.exe",
      };
  
  Process.Start(pStartInfo2);
  
  /********************************/
  /*      This code PASSES        */
  /********************************/
  var pStartInfoCalc2 = new ProcessStartInfo
      {
          WorkingDirectory = @"C:\Windows\system32\",
          FileName = @"calc.exe",
      };
  
  Process.Start(pStartInfoCalc2); }`
  </code></pre>
  
  <p>This is the image as it crashes:
  <img src="https://i.stack.imgur.com/3lDTu.jpg" alt="enter image description here"></p>
  
  <p>And following is the the problem signature from the crash screenshot:</p>
  
  <pre><code> Problem signature:
    Problem Event Name:   CLR20r3
    Problem Signature 01: MyApp.exe
    Problem Signature 02: 1.0.0.0
    Problem Signature 03: 51ef9fd8
    Problem Signature 04: mscorlib
    Problem Signature 05: 4.0.30319.18052
    Problem Signature 06: 5173bf28
    Problem Signature 07: 266d
    Problem Signature 08: a4
    Problem Signature 09: System.Windows.Markup.XamlParse
    OS Version:   6.1.7601.2.1.0.256.4
    Locale ID:    1033
    Additional Information 1: 1989
    Additional Information 2: 1989c043e2e04efdbf18835c58bb867b
    Additional Information 3: 37d3
    Additional Information 4: 37d31c18f56cf3083b1c45ca83bbb78e
  
  Read our privacy statement online:
    http://go.microsoft.com/fwlink/?linkid=104288&amp;clcid=0x0409
  
  If the online privacy statement is not available, please read our privacy statement offline:
    C:\Windows\system32\en-US\erofflps.txt
  </code></pre>