Results 1 to 4 of 4

Thread: Need my service to access UNC

  1. #1

    Thread Starter
    Addicted Member mandark's Avatar
    Join Date
    Oct 2002
    Posts
    188

    Need my service to access UNC

    Hi,

    I have an application which runs as a service and polls data from a sqlite database on a UNC path (\\server\share\stuff\etc..).

    When I run the application as console it connects to the UNC path fine, but when I try to run this as a service it fails to connect to the UNC path.

    I assume this is a permission thing, as the Windows Service isn't logged in as a user.

    I read some where that it needs programmatic impersonation to do so.

    Any help would be appreciated.

    Thanks in advance!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need my service to access UNC

    What is the error it generates when it fails?

  3. #3

    Thread Starter
    Addicted Member mandark's Avatar
    Join Date
    Oct 2002
    Posts
    188

    Re: Need my service to access UNC

    I'm using FileExists function (FileSystemObject) and it returns a false, even though the resource exists.

  4. #4

    Thread Starter
    Addicted Member mandark's Avatar
    Join Date
    Oct 2002
    Posts
    188

    Re: Need my service to access UNC

    Sorry to bump this up... but I 'm really stuck

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