CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2003
    Posts
    124

    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 !

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    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.

  3. #3
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    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.
    Nicolas Bohemier

  4. #4
    Join Date
    Apr 2003
    Posts
    124

    Smile 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 !

  5. #5
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Running an EXE that is on a remote server

    Control Panel -> Administrative Tools -> Framework 1.1 Wizards -> Trust Assembly/Adjust .NET Security

  6. #6
    Join Date
    Apr 2003
    Posts
    124

    Smile 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 !

  7. #7
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    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.
    Nicolas Bohemier

  8. #8
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    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.

  9. #9
    Join Date
    Apr 2003
    Posts
    124

    Thumbs up Re: Running an EXE that is on a remote server

    THANK YOU ALL for clarifying my doubts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured