File Upload is Interrupted by Server Randomly

Last post 07-03-2010, 2:46 AM by cutechat. 12 replies.
Sort Posts: Previous Next
  •  11-09-2009, 6:43 PM 57001

    File Upload is Interrupted by Server Randomly

       Hello,
          First of all, I have been using the Ajax Uploader for a few months now with no issues. However recently, I have been getting the error "Flash: The Upload Task has been Interrupted! Error #2038".
    I am currently using IIS v6. I've searched the forums for an answer, and the closest I have come to was this thread Link. I have checked all of the web.config files for my web application, and they are set up to support the large files, and as such the large request timeouts.
     
    I'm utilizing the UploadAttachments so that I can upload multiple attachments at once. Also, the uploader routinely uploads files sizes ranging from 800MB to just under 2GB.
    I am basically asking whether there is a basic reason for this, or if it is a more deep-set problem in either my code, or the server itself. Personally, I am perplexed as to why it stopped working just recently, and had no issues before(even uploading the exact same files as previously uploaded)
     
    Thank You in Advance. :)
     
    W. Andrew Shogren
  •  11-10-2009, 9:02 AM 57027 in reply to 57001

    Re: File Upload is Interrupted by Server Randomly

    Andrew,
     
    First you need to make sure you are using the latest build. http://ajaxuploader.com/download/Ajax-Uploader.zip
     
    Second, please set up a temp file location then try again:
     
     
    Keep me posted

    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

  •  11-10-2009, 5:11 PM 57037 in reply to 57027

    Re: File Upload is Interrupted by Server Randomly

    Thank You for the quick reply. :)
     
    I am using the most recent version of the uploader. I have also set the Temporary File Location as well.
     
    From web.config in my application
     
    1.  <configuration>  
    2. ...  
    3.  <appSettings>  
    4.   <add key="CuteWebUI.AjaxUploader.TempDirectory" value="E:\UploaderTemp" />  
    5.   <add key="CuteWebUI.AjaxUploader.GlobalMaxSizeKB" value="2306867" />  
    6.  </appSettings>  
    7. ...  
    8.  <system.web>  
    9.    <httpRuntime executionTimeout="1255654" maxRequestLength="2306867" />  
    10.    <httpModules>  
    11.       <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>  
    12.        ...  
    13.     </httpModules>  
    14.        ...  
    15. </system.web>  
    16. </configuration> 
     
    And from my upload file ...

    1.  <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    2.     <ContentTemplate>  
    3.         <br />  
    4.         <asp:Button ID="btnSelectFiles" runat="server"  Text="Select file(s) - Max 2GB"/>  
    5.         <cc1:UploadAttachments MultipleFilesUpload="true" ShowRemoveButtons="false" ShowCheckBoxes="false" RemoveButtonBehavior="None" ValidateOption-AllowedFileExtensions="gho,ghs" ManualStartUpload="true" InsertText="Select file(s) - Max 2GB" ID="Uploader1" runat="server" InsertButtonID="btnSelectFiles" >
    6.            <VALIDATEOPTION MaxSizeKB="2306867">
    7.         </cc1:UploadAttachments>  
    8.     </ContentTemplate>  
    9. </asp:UpdatePanel> 
    **EDIT** Sorry, cc1 is the tag prefix I gave to the assembly
    1. <%@ Register assembly="CuteWebUI.AjaxUploader" namespace="CuteWebUI" tagprefix="cc1" %> 
     
     
    Thanks Again,
     W. Andrew Shogren
  •  11-16-2009, 6:32 PM 57192 in reply to 57037

    Re: File Upload is Interrupted by Server Randomly

    I've continued looking through the code and the server configuration, and I have not been able to determine the cause. Is there something blatantly obvious that I am missing(like how I reference the uploader) or would it be more of a server issue?
     
    Any help is greatly appreciated, :)
     
    W. Andrew Shogren
  •  11-16-2009, 8:28 PM 57193 in reply to 57192

    Re: File Upload is Interrupted by Server Randomly

    W. Andrew Shogren ,
     
    Did you update the dll before and then got such problem ?
     
    And of how much percent of the progress when you get the error ?
     
    Regards,
    Terry
     
  •  11-17-2009, 5:22 PM 57226 in reply to 57193

    Re: File Upload is Interrupted by Server Randomly

    Terry,

    I (unfortunetly) do not know if the dll was updated. I recently started working here, and the guy that left just before me didn't leave any notes, and my boss does not know whether it was updated, just that(about 1 month ago) it just stopped working, while it had been working fine for at least two months.  I do know that the DLL is the most recent one as of 11/8/2009 (mm/dd/yyyy)
     
    The percent at which it stops working is completely random(hence the subject name :)) It ranges from 8% to 94% (those 94%'s are reaally frustrating :P)
  •  11-17-2009, 9:21 PM 57230 in reply to 57226

    Re: File Upload is Interrupted by Server Randomly

    Hi,
     
    Did you change any code of you application?
     
    For example , did you add http modules or change server side configuration ?
     
    The error code maybe caused by server closing the tcp connection and Flash can't get server side error message.
     
    So maybe you can find something in server event logs.
     
    Regards,
    Terry
  •  11-20-2009, 6:49 PM 57329 in reply to 57230

    Re: File Upload is Interrupted by Server Randomly

    As far as I know, and have been able to figure out, the program did not change, nor the server configuration before it stopped working.
     
     
     
    2009-11-21 00:01:16 10.23.54.230 1852 10.23.54.230 80 HTTP/1.1 POST /OTTS/Upload_Image.aspx?UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=Uploader1Image_1258761610193_1&_UploadControlID=Uploader1&ContextValue=!3wEWAQUPRTpcVXBsb2FkZXJUZW1wXebln91MYmoPSZSfrZJ0UMilTW4!2&_MaxSizeKB=2097151&_Addon=upload&_AddonGuid=00C59C6B-7570-5DBB-B2CA-F4E3C05FF7A8 - 1 Connection_Abandoned_By_AppPool DefaultAppPool
     
     
     
    2009-11-21 00:02:17 10.23.54.230 1868 10.23.54.230 80 HTTP/1.1 POST /OTTS/Upload_Image.aspx?UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=Uploader1Image_1258761610194_2&_UploadControlID=Uploader1&ContextValue=!3wEWAQUPRTpcVXBsb2FkZXJUZW1wXebln91MYmoPSZSfrZJ0UMilTW4!2&_MaxSizeKB=2097151&_Addon=upload&_AddonGuid=6155EAF1-4566-F521-5493-404F734F7A79 - 1 Connection_Abandoned_By_AppPool DefaultAppPool
     
     
     
    2009-11-21 00:02:24 10.23.54.230 1885 10.23.54.230 80 HTTP/1.1 POST /OTTS/Upload_Image.aspx?UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=Uploader1Image_1258761610196_3&_UploadControlID=Uploader1&ContextValue=!3wEWAQUPRTpcVXBsb2FkZXJUZW1wXebln91MYmoPSZSfrZJ0UMilTW4!2&_MaxSizeKB=2097151&_Addon=upload&_AddonGuid=10407FFD-3B8F-07FB-4094-C4942F1061BC 400 1 BadRequest DefaultAppPool
     
     
    Those are the last three events in the log(after I tried uploading two files, and them failing)
     
    I did some research and found that there may be an infinite loop or an error that crashes the webserver either in the uploader, or in my application of your Uploader.
     
    Do you have any suggestions?
     
    Thanks Again!
     
    W. Andrew S.

  •  11-24-2009, 10:13 AM 57388 in reply to 57329

    Re: File Upload is Interrupted by Server Randomly

    Andrew,
     
    What I can do is search the Connection_Abandoned_By_AppPool
     
    It seems that the worker process crash by an unknown reason.
     
    Please try this (web.config appSettings):
     
    <add key="CuteWebUI.AjaxUploader.UseAspNetStream" value="True"/>
     
    Regards,
    Terry
  •  11-24-2009, 6:18 PM 57400 in reply to 57388

    Re: File Upload is Interrupted by Server Randomly

     
    This is the error that I get about 15% of the time. This occurs when it finishes uploading. The rest of the time, I receive the same error after I added       <add key="CuteWebUI.AjaxUploader.UseAspNetStream" value="True"/> into my web.config file.
     
     
    I did notice that it increased the upload speed dramatically, but unfortunetly, I don't think it solved the issue.
     
    I'm thinking that when it is able to finish the upload, it deletes the file from the temporary file before it is able to copy it over to the new directory. 
     
     
    Thanks again,
    W. Andrew Shogren  :)
  •  05-21-2010, 10:27 AM 61231 in reply to 57400

    Re: File Upload is Interrupted by Server Randomly

  •  06-23-2010, 2:11 AM 61952 in reply to 61231

    Re: File Upload is Interrupted by Server Randomly

    I have exactly the same issue as you Andrew. I tried to set the param to true and false (false seems better ...), but it is still not stable

     
  •  07-03-2010, 2:46 AM 62263 in reply to 61952

    Re: File Upload is Interrupted by Server Randomly

    Hi,
     
    Please test the UploadType property , set it to IFrame or Flash or Silverlight
     
    If the server have error while uploading , IFrame mode shall report a better message , which can help us fix it.
     
    Regards,
    Terry
     
View as RSS news feed in XML