简体   繁体   English

通过单击按钮上的Process.Start()在服务器计算机上启动应用程序

[英]Launch an application on on the server machine through Process.Start() on button click

I've a C# asp.net webapp hosted, which should start an InternetExplorer process on the server on a button click from the client side browser. 我托管了一个C#asp.net Web应用程序,该应用程序应该在客户端浏览器上单击按钮,然后在服务器上启动InternetExplorer进程。

protected void Button1_Click(object sender, EventArgs e)
  {
       Process.Start("IExplore.exe", "www.google.com");
  }

Unfortunately this is not working out fine for me. 不幸的是,这对我来说不是很好。 But when I debug this, it works. 但是,当我调试它时,它可以工作。 Please help me to achieve this. 请帮助我实现这一目标。

Thanks, /Aravind 谢谢,/ Aravind

I assume you don't really want to start IE and obvious security issues aside; 我认为您真的不想启动IE,并且除了明显的安全问题外,还可以。 I suggest you take a look at these two: Running Process on Server via ASP.NET/C# on IIS and Process.Start Permissions Problem 我建议您看一下这两个: 通过IIS上的ASP.NET/C#在服务器上运行进程以及Process.Start权限问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM