从服务器端的C#code客户端系统上运行的.exe [英] Run .exe on client system from server-side c# code

查看:128
本文介绍了从服务器端的C#code客户端系统上运行的.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的C#asp.net网站运行客户端系统上的EXE文件。当我使用的Process.Start()
它抛出一个错误:

I want to run an exe on client system from my c# asp.net website. When I use Process.Start() it throws an error:

请求的操作需要提升。

我如何设置权限来运行exe文件?

How do I set permissions to run that exe?

推荐答案

您不能产卵从服务器端code中的客户端计算机上的进程。

You can't spawn processes on the client machine from server-side code.

当您使用的Process.Start 服务器端code,它正试图执行的没有的,在服务器上的过程其中,网站托管。如果你想创建客户端计算机上的进程,那么你就需要公开下载他们(而不是在用人托词,像恶性的网站可能会做安装软件 - 优雅地提供它,通常(经许可)),或Silverlight应用程序或类似的规定。

When you use Process.Start in server-side code, it is attempting to execute the process there, on the server where the website is hosted. If you wanted to create processes on the clients computer then you would need to expose a download for them (and not in employing subterfuge, like malign sites might do to install software - supply it gracefully, and normally (and with permission)), or a Silverlight application or something along those lines.

底线是要执行的(即使只是为了产卵的过程)的code必须驻留在客户端上,并在那里执行。

The bottom line is that the code you want to execute (even if that is just to spawn a process) must reside on the client, and be executed there.

这篇关于从服务器端的C#code客户端系统上运行的.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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