I want to open windows application from image button click of web page.
-
I want to open windows application from image button click of web page. I am using System.Diagonistic.Process.Start("exe path of local machine"); But it is throwing exception related to process and thread.
It is not possible to open an application from within an asp.net website. The main reason for this is security and secondly, you simply can't access the client machine as the asp.net webpage codebehind runs on the server. What are you trying to achieve?
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
It is not possible to open an application from within an asp.net website. The main reason for this is security and secondly, you simply can't access the client machine as the asp.net webpage codebehind runs on the server. What are you trying to achieve?
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
First of all thanks for your reply. Actually each client will have the exe on his machine on particular path. one more question is that System.Diagonistic.Process.Start("exe path") will it work or not.
Like I said before, it won't work. You will have to find another way. What will work is when you let the user start a clickonce installation from the server. Using clickonce is the best way to run a client application "from the server". It will install the application on the fly and start it immidiately after that. Be aware though that the application that is installed through clickonce is limited in security too.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
Like I said before, it won't work. You will have to find another way. What will work is when you let the user start a clickonce installation from the server. Using clickonce is the best way to run a client application "from the server". It will install the application on the fly and start it immidiately after that. Be aware though that the application that is installed through clickonce is limited in security too.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
Check this out: ClickOnce deployment[^] it should explain what it is and how it works.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
-
Check this out: ClickOnce deployment[^] it should explain what it is and how it works.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog
I am using ApplicationDeployment in my project to get querystring value but i am getting error The name 'ApplicationDeployment' does not exist in the current. The name 'HttpUtility' does not exist in the current context. I am not using namespace ? , if yes then what are the namcesapace for both of them.
-
I am using ApplicationDeployment in my project to get querystring value but i am getting error The name 'ApplicationDeployment' does not exist in the current. The name 'HttpUtility' does not exist in the current context. I am not using namespace ? , if yes then what are the namcesapace for both of them.