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

Uploading images caused IO handle locked?

3 Answers 74 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
tomexou
Top achievements
Rank 1
tomexou asked on 11 Oct 2010, 04:18 PM
I used RadFileExplorer (2010 Q2 SP2 v0929) to upload multiple images into a temp directory,
then I want to move the directory to another location.
Screen1

Platform: VS2010+Dev Web Server+ASP.NET 4.0.
Moving the uploaded subdir:  "D:\Items\Temp\xxx\" to "D:\Items\1\", but It occurred error:
"Access to the path 'D:\Items\Temp\xxx' is denied."

I have ensured and granted enought IO security for this operation.
Uses Unlocker tools to see what handles are hold?
Screen2

This lock will be a BIG problem for IO operation.
They are will not release the handle until the VS2010 dev web server is stopped.
I have searched Google for this lock problem, but it seems to nobody talked yet.

Paste thesimple codesnapet:
editorDirPath = string.Format("{0}/Temp/1", editorBasePath);
System.IO.Directory.CreateDirectory(this.MapPath(editorDirPath));
  
// Setting
ctrlProductPhoto.TreePaneWidth = 0;
ctrlProductPhoto.Upload.ControlObjectsVisibility = ControlObjectsVisibility.None;
ctrlProductPhoto.Upload.MaxFileInputsCount = 1;
  
// DirPath
targetDirPaths = new string[] {editorDirPath};
ctrlProductPhoto.Configuration.ViewPaths = targetDirPaths;
ctrlProductPhoto.Configuration.UploadPaths = targetDirPaths;
ctrlProductPhoto.Configuration.DeletePaths = targetDirPaths;

Please advice, thanks.

3 Answers, 1 is accepted

Sort by
0
tomexou
Top achievements
Rank 1
answered on 11 Oct 2010, 04:25 PM
For uploading with directory lock, I also tested the RadEditor's ImageManager and DocManager.
Once uploaded, ImageManager will cause the same lock to target directory, but DocManager would not.
0
Fiko
Telerik team
answered on 14 Oct 2010, 11:48 AM
Hello Tomex,

The problem that you experience is not related to Telerik controls and it is beyond of our support. In your case I recommend you to paste the question in the Microsoft's forums related to Cassini server. There you can get the best solution possible.

Personally, I have experienced the same problem before and the solution I found was to move the directory (the whole application) to a new location (a different folder). This fixed the problem on my case, so I recommend you to try it before asking in the forums.

I hope this helps.

Best wishes,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
tomexou
Top achievements
Rank 1
answered on 17 Oct 2010, 09:20 AM
Thanks for your kind reply.

I have tried all solutions in Google searched results, including:
1. Grants 'Network Service' or IUSER_xxx' complete authority.
2. Changes owner authority to subdirs.
3. Grants authority for ASP.NET temp folders.
4. Adds <identity impersonate="true" in web.config to try fixed user authority.
5. Moves the whole app dir to another folder.

All above are not working, so pity :(

At last, I set temp. path under App_Data/, the image files would not be locked.
But App_Data files are not browsable.

Nothing could do, so I uploaded app to publish server (Win2003, IIS6),
they works normal.

Maybe the ASP.NET development server (running as Admin) in VS2010 results in lock problems.
Tags
FileExplorer
Asked by
tomexou
Top achievements
Rank 1
Answers by
tomexou
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or