System diagnostic error in C#
<pre><code>string result="";
try
{
    System.Diagnostics.ProcessStartInfo androidInstallInfo = new System.Diagnostics.ProcessStartInfo();
    androidInstallInfo.FileName = "F:\\Android\\android-sdk-windows\\platform-tools\\adb.exe";
    androidInstallInfo.Arguments = "install " + ProjectLocation + "\\bin\\" + ProjectName + "-debug.apk";
    androidInstallInfo.WorkingDirectory = "F:\\Android\\android-sdk-windows\\platform-tools";//Program.INSTALLAPPONEMMULATOR;// 
    androidInstallInfo.RedirectStandardOutput = true;
    androidInstallInfo.UseShellExecute = false;
    androidInstallInfo.CreateNoWindow = true;

    System.Diagnostics.Process androidProcess = new System.Diagnostics.Process();
    androidProcess.StartInfo = androidInstallInfo;
    androidProcess.Start();
    result = androidProcess.StandardOutput.ReadToEnd();
    androidProcess.Close();
}
catch (Exception e)
{
    result = e.ToString();
}
return result;
</code></pre>

<p>I want to create object(androidProcess) but it is giving so many exceptions these are:- </p>

<pre><code>ExitCode = 'androidProcess.ExitCode' threw an exception of type System.InvalidOperationException'
ExitTime = 'androidProcess.ExitTime' threw an exception of type 'System.InvalidOperationException'
</code></pre>

<p>and so many so why these are occurring and how I can stop this.</p>

<p>Thanx in Advance</p>
