在进程中出错。从iis开始运行 [英] error in process.start wen running from iis

查看:80
本文介绍了在进程中出错。从iis开始运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi frens





我想从浏览器打开一个Windows应用程序......我使用过System.diagnostics .process.start();



并且指定了一条路径,即exe的路径...........它运行良好wen run通过视觉工作室,但我从IIS运行它抛出一个错误,如:系统找不到指定的路径..我可以设置路径..... plz指南这个

< br $>




谢谢darshan

Hi frens


I want to open a windows app from browser ......i have used System.diagnostics.process.start();

and specied a path i.e, the path of the exe ........... it works fine wen run through visual studio but wen i run from IIS its throwing an error like : "the system cannot find the path specified " ..how can i set the path .....plz guide on this



Thanks darshan

推荐答案

请参阅以下类似的主题:

System.Diagnostics.Process.Start不起作用一个IIS [ ^ ]

http://forums.iis.net /t/1181346.aspx [ ^ ]

http://forums.iis.net/t/1160655.aspx/1 [ ^ ]

http://nurhak-kaya.blogspot.in/2012/08/solution-for-systemdiagnosticsprocessst.html [ ^ ]





- Amit
Refer similar threads below:
System.Diagnostics.Process.Start not work fom an IIS[^]
http://forums.iis.net/t/1181346.aspx[^]
http://forums.iis.net/t/1160655.aspx/1[^]
http://nurhak-kaya.blogspot.in/2012/08/solution-for-systemdiagnosticsprocessst.html[^]


--Amit


你不能。



C#代码在服务器上执行,而不是在客户端上执行。所以当你执行

You can't.

C# code is executed on the server, not the client. So when you execute
Process.Start("MyApp.exe");

您正在服务器上执行它,因此服务器是运行Internet Explorer实例的地方 - 而不是客户端。当你在开发中时,服务器和客户端都是同一台机器,所以它看起来很有效 - 但是当你部署到Web服务器时,突然你看不到MyApp是打开的,因为它在服务器上打开了(可能是围绕着世界的另一边)并且可能让网络服务器管理人员烦恼。假设服务器安装了MyApp,这不是给定的 - 不太可能安装任何不必要的东西。



你不能做你想要的,除非在非常特殊的情况下。安全性不允许您从服务器执行cline机器上的应用程序(当然也不是可能安装或不安装的特定应用程序)。并且在99%的情况下不会发生具体情况。

You are executing it on the server, so the server is where the instance of internet explorer is run - not the client. When you were in development, both the server and the client were the same machine, so it looked like it worked - but when you deployed to the web server, suddenly you can't see MyApp open because it is open on the server (which may be round the other side of the world) and is probably annoying the heck out of the Web server administration guy. Assuming the server has MyApp installed which is not a given - it is very unlikely that anything unnecessary is installed.

You cannot do what you want, except under very specific circumstances. Security will not allow you to execute applications (and certainly not specific applications which may or may not be installed) on a cline machine from the server. And the specific circumstances do not occur in 99% of circumstances.


这篇关于在进程中出错。从iis开始运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆