Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I am trying to save files into particular folder on my local drive using C#. But i m getting above error.

I tried all the possibilities like giving full control to that folder. but didn't work.

Could you please assist me,


Thank you in Advance
Posted
Comments
Akinmade Bond 22-Oct-12 7:41am    
What folder exactly? If its a system folder, you might have to give elevated privileges to your program. Start by restarting your application as administrator.

You cannot write into the root of your C: drive unless the program runs with administrator privilege, which you can set in your application's manifest. It is also not recommended that you save files in this location, you should use one of the user or public folders.
 
Share this answer
 
hi,

Set read-write mode on for that particular folder.
 
Share this answer
 
Comments
jagadeesh123qqq 22-Oct-12 6:00am    
Thanks for replying. I gave full control.but no use

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