Click to See Complete Forum and Search --> : c# service question?


r00d0034
December 16th, 2002, 11:59 AM
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?

MartinL
December 16th, 2002, 12:56 PM
Generally, services runs under the local system account. If you didnot specify other user, it is running under local system. Local system user may, but may not, has guaranteed access to the network path...

Check if the domain account of the computer your service is running on is trusted account in the domain... If it is not, make it and the problem should be solved...

Martin