Support forums
in

Occasional "Unable to Write To Folder" error message

Last post 04-13-2010, 8:28 AM by Adam. 8 replies.
Sort Posts: Previous Next
  •  08-25-2009, 3:23 PM 55038

    Occasional "Unable to Write To Folder" error message

    We are occasionally (very small percentage of the time) getting the error"Unable to write to folder: {path}.  Please change the permissions of this folder or specify a temporary folder using TempDirectory property or setting temporary file location in web.config." where {path} is the path to the upload folder specified in the web.config.  Let me reiterate that uploading works in the majority of cases.  However we do see on a regular occurrence the error.

    Using the Sysinternals FileMon utility to monitor the folder during the upload process I see that when uploading a file, it appears that the file "TempPathTest.txt" is written, and deleted.   I believe that this is a crude test of directory permissions.  What I am speculating is that when activity gets high on our servers, two people may attempt to upload at the same time.  In this condition, I speculate that the one user is successful in creating this temp file, while the other gets an error either creating or deleting the file. 
     
    If my speculations are correct, I believe that this code will need to be updated such that each attempt to validate the directory permissions by the control within a thread utilize some random file name to make this a multi-thread-safe operation -- possibly by appending a GUID to the end of the TempPathTest file like the uploading and persisted file name patterns.
     
    Please confirm or correct my speculations.
     
    Thanks for your attention to this.
     
     
     
  •  08-26-2009, 12:55 PM 55075 in reply to 55038

    Re: Occasional "Unable to Write To Folder" error message

    We are getting nearly an identical problem.  Is this the case?  tgeorge73 - are you using a ~/directory or are you using //server/sharename?  I was wondering if it would behave differently if it realized we were using a network share in a web farm...
  •  08-26-2009, 1:11 PM 55076 in reply to 55075

    Re: Occasional "Unable to Write To Folder" error message

    We are using a folder on the C drive outside of our WWWRoot location for the upload temp location...  We granted appropriate NT permissions to the folder.  Most of the time it works, occasionally it fails.  No confirmation on my suspicions from support.  To date I have found no way to reproduce the issue, it just appears in our production error logs.  Haven't tried to simulate (or come up with a reliable way to simulate) two web browsers trying to upload at exactly the same time...
     
  •  08-26-2009, 7:56 PM 55082 in reply to 55038

    Re: Occasional "Unable to Write To Folder" error message

    Hi,
     
    Thanks for your advise.
     
    We have improve it.
     
    Please download the control again.
     
    Regards,
    Terry
  •  10-09-2009, 9:44 AM 56267 in reply to 55082

    Re: Occasional "Unable to Write To Folder" error message

    cutechat:
    Hi,
     
    Thanks for your advise.
     
    We have improve it.
     
    Please download the control again.
     
    Regards,
    Terry
    I don't think it has been improved enough because I am getting the same error.  In fact, I am getting the error when there is more than one person uploading.
     
    When will this be fixed?  I don't like seeing my application throw errors and I definitely don't like the heat it brings down on me concerning these permission errors.
     
    Why can't you guys use a GUID for the txt file name?  Do I need to code around your control and dynamically create temp directories per user that goes to a page that has your upload control, just so I can keep management off my back?
     
    Please look into this and fix it.
  •  10-09-2009, 9:50 AM 56269 in reply to 56267

    Re: Occasional "Unable to Write To Folder" error message

    Hi,
     
    Can you try the last version ?
     
    the newest is 20091006 ,
     
    We already use this file name pattern for testing : "writetest_"+Guid.NewGuid()+".txt"
     
    Regards,
    Terry
  •  10-09-2009, 9:55 AM 56271 in reply to 56269

    Re: Occasional "Unable to Write To Folder" error message

    cutechat:
    Hi,
     
    Can you try the last version ?
     
    the newest is 20091006 ,
     
    We already use this file name pattern for testing : "writetest_"+Guid.NewGuid()+".txt"
     
    Regards,
    Terry
    ok mine was 20090518. 
     
    I hope this fixes it!  =D
     
    Thanks.
  •  04-13-2010, 4:24 AM 60046 in reply to 56271

    Re: Occasional "Unable to Write To Folder" error message

    Hi
    I have got the same issue with my version of Ajax File uploader. I think I'm using older version than 
    2009100. So Do I need to pay for my upgrade?


    Regards
    Dilly
  •  04-13-2010, 8:28 AM 60052 in reply to 60046

    Re: Occasional "Unable to Write To Folder" error message

    Dilly:
    Hi
    I have got the same issue with my version of Ajax File uploader. I think I'm using older version than 
    2009100. So Do I need to pay for my upgrade?


    Regards
    Dilly
     
    Dilly,
     
    No, you don't need to pay for the upgrade.
     
    Your existing license file should work for the latest build.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems