Hi,
I have a Windows Service that copies xml files from a shared folder on the server.
I am using System.IO.File. Copy(\\Server-Name\SharedDir) method. But whenever I try to copy files there is an error "Access is denied".
I tried the same code in Windows application and it worls fine. The problem is present only in the Windows Service.
Any suggestions?
Thanks
I have a Windows Service that copies xml files from a shared folder on the server.
I am using System.IO.File. Copy(\\Server-Name\SharedDir) method. But whenever I try to copy files there is an error "Access is denied".
I tried the same code in Windows application and it worls fine. The problem is present only in the Windows Service.
Any suggestions?
Thanks
Comment