Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么进程不在ms server 2003和iis6上运行?_C#_Asp.net_Iis 6_Windows Server 2003 - Fatal编程技术网

C# 为什么进程不在ms server 2003和iis6上运行?

C# 为什么进程不在ms server 2003和iis6上运行?,c#,asp.net,iis-6,windows-server-2003,C#,Asp.net,Iis 6,Windows Server 2003,我试图在ms server 2003和iis 6上运行该进程,但无效 Process _process = new Process(); _process.StartInfo.FileName = Server.MapPath("~/Content/vtourPolygon/krpanotools/kmakemultires.exe"); _process.StartInfo.UseShellExecute = true; _process.StartInfo.CreateNoWindow =

我试图在ms server 2003和iis 6上运行该进程,但无效

Process _process = new Process();
_process.StartInfo.FileName = Server.MapPath("~/Content/vtourPolygon/krpanotools/kmakemultires.exe");
_process.StartInfo.UseShellExecute = true;
_process.StartInfo.CreateNoWindow = true;

string templatePath = Server.MapPath("~/Content/vtourPolygon/krpanotools/templates/normal.config");
string imagePath = Server.MapPath("~/Content/vtourPolygon/image.jpg");
_process.StartInfo.Arguments = string.Format("krpanotools makepano -config={0} {1}", templatePath, imagePath);
_process.Start();
_process.WaitForExit();

有什么问题

那么,当你尝试时会发生什么?你有例外吗?可执行文件只是不运行吗?您是否考虑过2003已经非常陈旧,应用程序可能无法运行?这种安装要求可能会像C++运行时一样丢失?您是否考虑过尝试从命令行启动它,只是为了检查它是否工作?到目前为止,您做了大量的工作-复制、粘贴、让其他人猜测。您是否可以如中所示连接输出和错误流,并将结果写入Trace.write