CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Location
    pakistan
    Posts
    36

    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

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    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
  •  





Click Here to Expand Forum to Full Width

Featured