Click here to Skip to main content
14,212,717 members
Rate this:
Please Sign up or sign in to vote.
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?

Thanks
Sanjeev
Posted
Updated 30-Oct-12 23:03pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You need to use System.IO Namespace[^]

hope it helps :)
   
Comments
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)



Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.2 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100