title: 'The specified executable is not a valid application for this OS platform
body: <p>I want to print a PDF file from C# code without user interaction.</p>
  
  <p>I tried <a href="https://stackoverflow.com/a/5566234/1563833">this accepted answer</a> but it is not working for me.</p>
  
  <p>This is the code I tried:</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo = new ProcessStartInfo()
  {
       CreateNoWindow = true,
       Verb = "print",
       FileName = @"G:\Visual Studio Projects\PrintWithoutGUI\PrintWithoutGUI\Courses.pdf" //put the correct path here
  };
  p.Start();
  </code></pre>
  
  <p>I get this <strong>exception :</strong></p>
  
  <blockquote>
    <p>System.ComponentModel.Win32Exception: 'The specified executable is not a valid application for this OS platform.'`</p>
  </blockquote>