help
-
I have created a service in c#. And I am executing a Process.Start command in this code ( OF SERVICE PROJECT) . that command(Process.Start ) is executing sucessfully for local drives but it throws Win32Exception (means There was an error in opening the associated file) at network path. for example path is \\computername\folder1\folder2\some.exe AND it heapens only with Service type application all other applications are executing any process at network path (i.e \\computername\folder1\folder2\some.exe)successfully with this command(Process.Start). Can any body tell how will I make my Service to execute any Process at network path? r00d0034@yahoo.com
-
I have created a service in c#. And I am executing a Process.Start command in this code ( OF SERVICE PROJECT) . that command(Process.Start ) is executing sucessfully for local drives but it throws Win32Exception (means There was an error in opening the associated file) at network path. for example path is \\computername\folder1\folder2\some.exe AND it heapens only with Service type application all other applications are executing any process at network path (i.e \\computername\folder1\folder2\some.exe)successfully with this command(Process.Start). Can any body tell how will I make my Service to execute any Process at network path? r00d0034@yahoo.com
As default a service runs as the "System" user. This user dont have permissions to access shares on other computers. You have to change toe user that the service logs on as. Change that to a user that have permissions to access the share, then it works ;) - Anders Money talks, but all mine ever says is "Goodbye!"