Running an EXE that is on a remote server
Dear All,
I've developed a program that connects to an ACCESS DB. I want this EXE and the DB to reside on a remote server.
I have two questions:
1. On other client PCs I just want to have a desktop icon(shortcut) mapped to this EXE which is on the remote server. Is this a practical thing or is it a good way to give access to the exe?
2. My idea is whenever I update the EXE I just have to copy the latest in to the server and all the users will have access to the new version. Is there a better way that I could do this?
PLEASE HELP !
THANK YOU !
Re: Running an EXE that is on a remote server
1. Yes.
2. This will work, the only catch is you can't update the EXE while the program is in use by any of your users.
Re: Running an EXE that is on a remote server
if this is a .NET exe, you will have to play around with the .NET Security if you want the user to be able to run it from the server.
Re: Running an EXE that is on a remote server
THANK YOU DSJ & BOUMXYZ22 !
Yes it is a .NET application. When you said play around with .NET security, is it within the program code or something outside?
Thanks again !
Re: Running an EXE that is on a remote server
Control Panel -> Administrative Tools -> Framework 1.1 Wizards -> Trust Assembly/Adjust .NET Security
Re: Running an EXE that is on a remote server
Thank you JHammer.
I checked those options out. I have some dbouts.
When I install the EXE on the main PC (server) which is running Windows XP, I'll need to install the .net framework and run my application setup correct?
On the client PCs, which is running Windows XP, I still need to install the .net framework and run the application setup, is that right? Or do I just need to install the .net framework and create a short cut to the EXE which is on the main PC?
The settings you have mentioned, do I have to do it on all client PCs as well? What exactly should be my settings for the main PC and clients?
Hope its not too much of a trouble. THANK YOU !
Re: Running an EXE that is on a remote server
Install .Net framework everywhere.
Then the rest is as usual with a remote Exe, as long as you have set the .NET Security.
Re: Running an EXE that is on a remote server
Quote:
Originally Posted by Coolboylp
do I have to do it on all client PCs as well? What exactly should be my settings for the main PC and clients?
Every computer that wants to run assemblies from other computer in the same network, need to trust that assembly. Otherwise you get SecurityException.
So on the computer were the assembly is installed you don't need to play with the security.
On other computers that want to run the remote assembly you need to trust the assembly. Two options: The easier way is to set the Security Adjustment to Full Trust (using the Adjust .NET Security wizard). This will cause all remote assemblies to work. (Obviousely this is risky, but you know what you need). Other option is to use the Trust An Assembly wizard, and select a URL for the assembly.
I hope this clarify things.
Re: Running an EXE that is on a remote server
THANK YOU ALL for clarifying my doubts.