Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS5.1 ASP.NET C#4.0
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 21-Dec-12 20:47pm

1 solution

Rate this: bad
good
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", "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.
  Permalink  

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

  Print Answers RSS
0 Maciej Los 225
1 OriginalGriff 205
2 Manfred R. Bihy 190
3 CHill60 180
4 Sergey Alexandrovich Kryukov 164
0 OriginalGriff 7,395
1 Sergey Alexandrovich Kryukov 6,163
2 Maciej Los 3,754
3 Peter Leow 3,448
4 CHill60 2,702


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 22 Dec 2012
Copyright © CodeProject, 1999-2014
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