Welcome Guest Search | Active Topics | Sign In | Register

Deleting files through FileExplorer and System.IO.Delete() Options
Duane
Posted: Friday, August 14, 2009 1:35:05 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
I have a virtual directory on our web site with a number of dynamically created subfolders for customers to upload images using the uploader control inside the FileExplorer.

The FileExplorer control also allows deletion of any uploaded files within the customer's directory, however, when I attempt to use the System.IO.Delete() method within my code to delete files and directories, I get an exception: "Access to path denied".

My question (although not direclty related to EO controls), is what permissions do you use with the FileExplorer control to allow deletion of files from a virtual directory - or any directory for that matter - that are not accomplished by granting the ASPNET and Administrator's accounts Full access to the file share and directory?

Thanks,
Duane
eo_support
Posted: Friday, August 14, 2009 1:42:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I don't believe FileExplorer does anything special about permission. It runs under the same account as your other code and receives the same permission. Any difference might just be a different file path.

Thanks!
Duane
Posted: Friday, August 14, 2009 5:04:21 PM
Rank: Advanced Member
Groups: Member

Joined: 9/4/2007
Posts: 114
Interesting, when I run my application in my dev envirionment which uses a local application directory (not virtual), the file attribute setting, file deletion and directory deletion works fine, but when I build to our test staging site which has the virtual directory, I get the "Access to path is denied" exception as soon as FileAttributes.Normal is called after mapping the path and checking Directory.Exists for the specified sub directory (which succeeds).

It seems like there must be some difference in permissions in how the file explorer code executes. The path is the same, just a virtual directory in the staging site.

Thanks,

eo_support
Posted: Friday, August 14, 2009 5:29:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please do not rely on our tech support for coding issues that are not related to our product. We don't mind to offer you a few tips if we know a thing or two that can help you out, but we already told you that FileExplorer is not doing anything special as far as to permissions. So there is really nothing more we can tell you on this regard. We are certainly not in a position to look into your particular problems that is not even related to our product. You should rely on other resources for such issues.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.