Can't access Network drive in Window Service
Any other way to access network drive or mapped folder in a window service which is NOt running under a Domain user account who has privilege on that folder.
any idea?
thanks in advance
Any other way to access network drive or mapped folder in a window service which is NOt running under a Domain user account who has privilege on that folder.
any idea?
thanks in advance
Hi,
I think the recommended way is to allow the service account to have access to that folder.
To do that in code, I can only think of impersonation. Take a look at this article with sample code:
http://msdn2.microsoft.com/en-us/library/5z4b2h41(en-US,VS.80).aspx
Best regards,