Uploading images caused IO handle locked?

4 posts, 0 answers
  1. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 11 Oct 2010 Link to this post

    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.
  2. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 11 Oct 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 14 Oct 2010 Link to this post

    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
  5. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 17 Oct 2010 Link to this post

    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.
Back to Top