Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
64 Points
224 Posts
Process.start is not working in IIS
Jun 20, 2012 08:48 AM|LINK

Hi,

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", "www.northwindtraders.com");

Plz help me on this
Posted

1 solution

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
C#
Process.Start("IExplore.exe", "www.northwindtraders.com");
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900