Click here to Skip to main content
15,353,432 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
Im facing the following error while im going to zip or unzip the files in the folder. and same issue raising in another solution while uploading the files from my desktop to ftp server. i can do it by changing the access controls of the file by opening properties pane of the file.
but what i want is change the access of the files through code. please suggest me.

Error: Access to the path is denied?

Updated 30-Oct-12 23:03pm

1 solution

You need to use System.IO Namespace[^]

hope it helps :)
Sanjeev Alamuri 31-Oct-12 4:43am
@Uday, i placed the this namespace in Namespace section, but facing same issue.
Uday P.Singh 31-Oct-12 4:45am
what is the issue?
Sanjeev Alamuri 31-Oct-12 4:51am
Access to the path 'c:\inetpub\wwwroot\VS2010\Only MasterPage\extracted file\JQuery' is denied.

i can do it by changing access controls for "extracted files" folder. but i want to change the access controls(Read, Write) through code

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