0

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.

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

a4aravind
  • 1,202
  • 1
  • 14
  • 25
  • Define "not working", what do you expect this to do and what does it do. What are you trying to achieve with this, it doesn't seem like a useful thing to do. – Ben Robinson Nov 19 '14 at 09:57
  • Thanks Ben ! I meant the IExplore process is not getting started on the server machine. Acutally what I want to achieve is to start a powershell.exe and run a script there which is a very very useful thing for me. – a4aravind Nov 19 '14 at 10:06

1 Answers1

1

I assume you don't really want to start IE and obvious security issues aside; I suggest you take a look at these two: Running Process on Server via ASP.NET/C# on IIS and Process.Start Permissions Problem

Community
  • 1
  • 1
Leon
  • 919
  • 6
  • 21