Timeouts on Large Files

Last post 08-09-2010, 10:40 AM by Adam. 8 replies.
Sort Posts: Previous Next
  •  07-29-2010, 2:39 PM 62805

    Timeouts on Large Files

    I have been testing the Ajaxuploader, and I have been getting a "Flash: The upload task is interrupted! io Error #2038" message when trying to upload a 100MB+ file. I've set the maxRequestLength to handle the large files, so I know that's not the problem. I timed the page as it was running, and the error occurs after 135 seconds without fail. I tried to adjust the executionTimeout value in the httpRuntime tag of my web.config, but that had no effect. Should I be adjusting something else?
  •  07-29-2010, 9:39 PM 62809 in reply to 62805

    Re: Timeouts on Large Files

    Hi,
     
    I think you need test a general asp.net upload control for the large file , to validate your configuration.
     
    <asp:FileUpload runat=server ID=FileUpload1 />
     
    Regards,
    Terry
     
     
  •  07-30-2010, 9:49 AM 62833 in reply to 62809

    Re: Timeouts on Large Files

    The ASP.NET file upload control times out after the same amount of time. Changing executionTimeout in httpruntime in the web.config for the project doesn't have any effect on that either. Is there an IIS setting we're missing? We are on IIS 7 on a windows server 2008 web cluster. We also require client certificates for authentication.

  •  08-02-2010, 8:23 PM 62969 in reply to 62805

    Re: Timeouts on Large Files

    Hi,
     
    What error do you get when testing the asp.net file upload control ?
     
    How about your configuration for the trust level ?
     
    <trust level="Full" />
     
    If you use this , uploader module will help you to skip the execution timeout issue for uploader requests.
     
    on our server , we do not set sepcial configuration : http://ajaxuploader.com/Demo/Large-File-Upload.aspx
     
    Another way for big file uploading task , is using Silverlight mode. Silverlight mode will split a file into small pieces.
     
    Regards,
    Terry
  •  08-03-2010, 11:55 AM 63029 in reply to 62969

    Re: Timeouts on Large Files

    When using the ASP.NET file upload control, I get the standard "Internet Explorer cannot display the webpage" error, and it gives a list of possible issues to look into. I already know the server is terminating the connection, though. I added the trust level to my web.config, but that didn't help. I need to check with my network team to see if they've locked that attribute in machine.config, though.
  •  08-03-2010, 12:22 PM 63032 in reply to 63029

    Re: Timeouts on Large Files

    I checked with our network team, and IIS was already set at full trust level, so that's not the issue either.
  •  08-03-2010, 1:17 PM 63037 in reply to 63029

    Re: Timeouts on Large Files

    Do you have problems with uploading a 10MB - 30MB file?
     
    Can you check the following article and make sure you change your IIS7 setting correctly?
     
     
    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

  •  08-04-2010, 9:07 AM 63074 in reply to 63037

    Re: Timeouts on Large Files

    The size of the file is not the problem, it's the speed of the user's connection. I can upload a 100MB file from my fast connection at work because it will take less than 135 seconds. I can't do it from home on my slower connection because the page will time out.
     
    We have fixed this for now by increasing the timeout setting in IIS 7 for the site. You don't have to do this normally? How else would you avoid the timeout issue for very large files? Is the control itself supposed to be able to set timeout values somehow? We have the trust level set at full already. Does the control need to be able to modify a setting that may be locked at the machine.config level or something like that?
  •  08-09-2010, 10:40 AM 63265 in reply to 63074

    Re: Timeouts on Large Files

    ASMR,
     
    Can you add the following code into your web.config then try again?
     
    <httpRuntime executionTimeout="100000" maxRequestLength="2000000" />

    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