Open .exe from network

Hello,
I have created a simple data entry application that I would like the users to open from the network. I have tested this on another machine besides mine and was able to get it to work fine. I'm just wondering if there is some more info on this type of thing  

I have setup a deployment project, because if I'm not mistaking, the users will need to at least install the .dll's for the app and I have included a shortcut to the Application, which is on the network. I made the shortcut by adding another folder to my Installer project just called Network AppFolder. I set it's default location to where my .exe is located on the network and then added the .exe file to that folder. I created a shortcut off of that .exe. The 'Network AppFolder' by the way, I set the always create to False. This way it doesn't try to create the folder and .exe every time the setup is ran. 

Also, I am wondering, do I have to have the .dll files in the network folder that contains the .exe program  Upon testing, I did have to copy them in there. I would think that the .exe should use the .dll files on the users machine and not be needed in the network folder. 

If someone can please clarify and let me know if this is the correct approach to do what I'm wanting or is there a more sufficient way of doing this  

Thanks


Answer this question

Open .exe from network

  • RvA

    Sorry for the late answer, but better than nothing, right ! ;)

    Basically, when an application wants to load an assembly (dll), the framework will look for it in two places: The GAC on the users machine, and the directory the application is in (in your case: the network share).

    The GAC is only supposed to be used for components that need to be shared by many applications, such as the framework itself.

    This means that you have to put your dll's in the network folder, along with the exe.

  • Open .exe from network