Hello, I have a windows service developed in VB.net. This Windows Service every night at 8 PM picks a file from copies a file from my C:\ftpDocs to Y:\FtpDocs folder.
Y: is a mapped drive which is \sourceServer\Output files. when I run the same code from VB.net Windows Application instead of windows service it is working absolutely fine. But from the service it is throwing access denied error accessing \sourceServer\Output
It seems windows service runs from C:\windows\system32 for this reason I tried changing the current directory to C:\ftpService( This is the folder where my application is).
To access the map drive I provide a userid and password which is not my windows userid and pwd. Do you think this is the reason why it is not able to access from Windows Service??
If yes, how is it working from windows application. This issue is not going away for the past one month now.
I would really appreciate if you can help me out with this.
Thanks