title: process.StandardOutput.ReadToEnd returns null
body: <p>I have this code:</p>
  
  <p>in c# windows form works right...but in asp.net its return null</p>
  
  <pre><code>        var tempCadena = HttpContext.Current.Server.MapPath("~/" + HttpContext.Current.Session["db"] + "/" + "cadena");
          System.IO.File.WriteAllText(tempCadena, cadena);
  
          // Digestion SHA1
          var tempSha = HttpContext.Current.Server.MapPath("~/" + HttpContext.Current.Session["db"] + "/" + "sha");
          var opensslPath = HttpContext.Current.Server.MapPath("~/openssl/bin/openssl.exe");
          Process process = new Process();
          process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
          process.StartInfo.FileName = opensslPath;
          process.StartInfo.Arguments = "dgst -sha1 " + tempCadena;
          process.StartInfo.UseShellExecute = false;
          process.StartInfo.ErrorDialog = false;
          process.StartInfo.RedirectStandardOutput = true;
          process.Start();
  
  
          string codificado = "";
          codificado = process.StandardOutput.ReadToEnd();
          process.WaitForExit();
  </code></pre>
  
  <p>codificado = null I tried many things and nothing...can someone help me please?</p>
  
  <p>I tried to change Process to ProcessStartInfo and doesn't work</p>