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

[197 byte] By [merlynml] at [2007-12-17]
# 1

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,

HuyN_MS at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...