私はc#でdotnetを介してbatファイルを実行しました以下のとおりです
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "d://s.bat";
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
dotnetideを実行している間は正常に動作します。
しかし、私の問題は、IISを介して公開した後に上記のコードを実行すると、次のようなエラーが返されることです。
StandardOut-has-not-been-redirected-or-the-process-hasn-t-started-yet。
この問題を解決するためのガイドラインを教えてください。