Click here to Skip to main content
13,195,146 members (68,169 online)
Rate this:
Please Sign up or sign in to vote.
64 Points
224 Posts
Process.start is not working in IIS
Jun 20, 2012 08:48 AM|LINK


can any1 help me on this. while running in VS ,process.start is working fine.but,after deploying in IIS,i am not able to invoke that , Process.start is not working.

Here is my code,

Process.Start("IExplore.exe", "");

Plz help me on this
Posted 21-Dec-12 20:47pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Yes it is.

Trust me on this.

It's just that you don't understand what is happening.
C# code is executed on the server, not the client. So when you execute
Process.Start("IExplore.exe", "");
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 Internet Explorer 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 IE installed which is not a given - it is very unlikely that anything unnecessary is installed and that would exclude IE.

You cannot do what you want, except under very specific circumstances. Security will not allow you to execute applications (and certianly 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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171019.1 | Last Updated 22 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100