title: Exception: System.ComponentModel.Win32Exception: Invalid data at System.Diagnostics.Process.Start_shell
body: <p>I am working on linux environment and using Mono for development. i have a C# project in which i want to start another application/executable file. the code snippet is below:</p>
  
  <pre><code>string pathToDB = @"""/root/somefolder/anotherfolder/""";
                          Process process = new Process();
                          process.StartInfo.FileName = @"/root/somefolder/filename";
                          process.StartInfo.Arguments = @"""" + pathToDB + @"""" + "$" + contents + "$" + "documentTerms";
                          process.Start();    
  </code></pre>
  
  <p>i m passing three(3) arguments. 1st is a folder path, 2nd is some text data which i have represented by string     contents     , and 3rd one is some hard coded text. when i am running this program it gives me the following exception/error:</p>
  
  <pre><code>CreateProcess: Unfinished quote.
  
  Exception: System.ComponentModel.Win32Exception: Invalid data
  at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Diagnostics.Process.Start () [0x00000] in &lt;filename unknown&gt;:0 
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
    at XapianTest.SimpleIndex.ProcessFiles (System.String path) [0x000dc] in /root/Projects/XapianTest/XapianTest/SimpleIndex.cs:84 
    at XapianTest.SimpleIndex.ProcessFiles (System.String path) [0x0013d] in /root/Projects/XapianTest/XapianTest/SimpleIndex.cs:105 
    at XapianTest.SimpleIndex.ProcessFiles (System.String path) [0x0013d] in /root/Projects/XapianTest/XapianTest/SimpleIndex.cs:105 
    at XapianTest.SimpleIndex.Main (System.String[] argv) [0x00023] in /root/Projects/XapianTest/XapianTest/SimpleIndex.cs:51    
  </code></pre>
  
  <p>what am I doing wrong!
  please anyone help me...</p>
  
  <p>Thanks in advance...</p>