Click here to Skip to main content
11,637,415 members (58,448 online)
Rate this: bad
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 " can i set the path .....plz guide on this

Thanks darshan
Posted 17-Jun-13 1:16am
deepakkavi at 17-Jun-13 7:26am
Rate this: bad
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
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.

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

  Print Answers RSS
0 OriginalGriff 295
1 stibee 288
2 270
3 Sergey Alexandrovich Kryukov 224
4 himanshu agarwal 184
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,643
2 Mika Wendelius 6,959
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 17 Jun 2013
Copyright © CodeProject, 1999-2015
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