|
-
December 16th, 2002, 12:59 PM
#1
c# service question?
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?
Imran rafique
-
December 16th, 2002, 01:56 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|