Click here to Skip to main content
13,148,427 members (61,709 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 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
Top Experts
Last 24hrsThis month

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