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!
Re: Need my service to access UNC
What is the error it generates when it fails?
Re: Need my service to access UNC
I'm using FileExists function (FileSystemObject) and it returns a false, even though the resource exists.
Re: Need my service to access UNC
Sorry to bump this up... but I 'm really stuck :(