私のIISサービスはコンソールアプリを呼び出しています。このコンソールアプリはDLLを参照します。
エラー出力を確認すると、次のようになります。
ファイルまたはアセンブリを読み込めませんでした'file:/// c:\ windows \ system32 \ inetsrv \ MyDll.dll'
実行可能ファイルを呼び出す正しい方法は何ですか?
これまで私はこれを試しました:
using (var p = new System.Diagnostics.Process())
{
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.FileName = downloaderPath;
p.Start();
string o = p.StandardOutput.ReadToEnd();
string i = p.StandardError.ReadToEnd();
p.WaitForExit();
}