This is a migrated thread and some comments may be shown as answers.

Permission Denied when deleting file

1 Answer 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
bnooyen
Top achievements
Rank 1
bnooyen asked on 24 Jul 2008, 04:23 PM
I've went through the 3 steps here:

http://www.telerik.com/support/kb/article/b454K-eda-b454T-kb-b454c-kb.aspx

Still, I get a permission denied error when I try to modify or delete any files using the treeview.  I have it working in other scenarios, but I think my permissions may be fouled up, or I'm overlooking something.  The full error is:

Access to the path is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Access to the path is denied.

Source Error:

Line 412:            string dir = txtFile.Text;
Line 413: System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(dir);
Line 414: di.Attributes = FileAttributes.Normal;
Line 415: if (di.Exists)
Line 416: {

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 25 Jul 2008, 06:43 AM
Hi bnooyen,

It really seems that the problem is with the permissions. Can you recheck them? Maybe you have to replace the permissions of the child objects with the permissions of the parent folder...

Best regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
bnooyen
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or