1
Answer

Run process Remotely

Administrator

Administrator

21y
1.8k
1
Hi, I developed an application (App1.exe) that has to be run from a main Server (Server1), so, all you have to do is run the following command "\\Server1\myDir\App1.exe". There is no problem with that, except that the App1.exe has to use some functions to access the Registry of the Client where is running the application, besides some files that are also at the Client Machine. If I have the App1.exe copied at my machine, of course there is no problem, but if I run it from the Server1, it throws a Security Exception as follows: "System.Security.SecurityException" related to "System.Security.Permissions.RegistryPermission" How do I tell to the application (programatically of course) that run with the rights of the user whom started it remotely? This in order to access the local registry and the local files. Thaks for any help.
Answers (1)