Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get access rights to the network folder path for a windows service c#? I am moving files from my machine to a shared network path. Winodws service is running as local system account. Gave permissions to Everyone to the destination folder from the source folder of my machine. But I am getting Access Denied Error. If I am running on my system its fine.
The following are my source and destination folder paths.
XML
<add key="OrginalFolderPath"  value="C:\TEMP\FileUpload\"/>
        <add key="FileBakupPath"  value ="\\nestit-225\ARCHIVALFOLDER\"/>
Posted
Comments
CHill60 3-Jul-14 10:26am    
Talk to your network admin
[no name] 3-Jul-14 10:50am    
Local system account does not have network access for a windows service.

1 solution

See file access permission setting from below
sharing-permissions.html[^]

and share your folder
http://www.qnap.com/index.php?sn=2718[^]

Set Everyone" and ticked all boxes except "Full Control" by code
add-everyone-privilege-to-folder-using-c-net[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900