|
-
Apr 25th, 2010, 08:00 AM
#1
Thread Starter
Addicted Member
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!
-
Apr 26th, 2010, 06:18 AM
#2
Re: Need my service to access UNC
What is the error it generates when it fails?
-
Apr 26th, 2010, 06:28 AM
#3
Thread Starter
Addicted Member
Re: Need my service to access UNC
I'm using FileExists function (FileSystemObject) and it returns a false, even though the resource exists.
-
Apr 28th, 2010, 09:10 AM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|