Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Windows form
Hi frens
 

I want to open a windows app from browser ......i have used System.diagnostics.process.start();
 
and specied a path i.e, the path of the exe ........... it works fine wen run through visual studio but wen i run from IIS its throwing an error like : "the system cannot find the path specified " ..how can i set the path .....plz guide on this
 

 
Thanks darshan
Posted 17-Jun-13 2:16am
Comments
deepakkavi at 17-Jun-13 7:26am
   
http://support.microsoft.com/kb/555134
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can't.
 
C# code is executed on the server, not the client. So when you execute
Process.Start("MyApp.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 MyApp 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 MyApp installed which is not a given - it is very unlikely that anything unnecessary is installed.
 
You cannot do what you want, except under very specific circumstances. Security will not allow you to execute applications (and certainly 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 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 17 Jun 2013
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