Welcome Guest Search | Active Topics | Sign In | Register

Progress Bar Does Not Start - Upload Times Out Options
ibm5108735
Posted: Tuesday, March 24, 2009 11:51:10 AM
Rank: Newbie
Groups: Member

Joined: 4/18/2008
Posts: 9
Whenever I try to upload a "larger" file, (in my case I am trying a 70MB file) I notice that after I click upload, the progress bar does not start or move, and eventuually I get the AJAX error stating that the communication with the server has timed out. This doesn't happen with smaller files (10MB, 20MB work fine).

Below are my web.config settings for httpRuntime element:

Code: XML
<httpRuntime maxRequestLength="1048576"
                     executionTimeout="3600"/>



I use an additional httpModule, so I removed that but it didn't help. I have checked the permissions & disk space for Anonymous ASPNet User at my web host, but that is all fine. Tracing is not enabled.

Below is my eo ajaxuploader control's code.

Code: HTML/ASPX
<eo:ajaxuploader runat="server" autopostback="true" clientsideonerror="UploadErrorHandler"
                            id="ctlFileUpload" maxfilecount="1" onfileuploaded="ctlFileUpload_FileUploaded"
                            rows="1" width="400px" tempfilelocation="~/acctmgr/sponsor/videouploadtemp" />


Code: C#
protected void ctlFileUpload_FileUploaded(object sender, EventArgs e)
        {
            // Get posted file
            files = ctlFileUpload.PostedFiles;

            // Upload File
            bool success = UploadFile();

            if (success)
            {
                // Hide input form, and show confirmation message
                pnlVideos.Visible = false;
                ctlFileUpload.Visible = false;

                lblMsg.Text = "Thank you...";
            }
            else
                lblMsg.Text = "Error...";
        }


Perhaps I am missing something else? If you need additional information, please let me know...
eo_support
Posted: Tuesday, March 24, 2009 11:57:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Do you use IIS 7?

Thanks!
ibm5108735
Posted: Tuesday, March 24, 2009 12:27:05 PM
Rank: Newbie
Groups: Member

Joined: 4/18/2008
Posts: 9
Yes, we are using IIS7 on discountasp.net.
eo_support
Posted: Tuesday, March 24, 2009 12:38:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

IIS 7 has a setting to restrict the request size. If that is the issue, then most likely you will need to have discountasp.net to change that setting for you. The setting rejects any request that contains more data than the set limit. An easy way to verify whether this is the problem is to use a regular HTTP file input element to upload a huge file and see if that goes through.

You can find more information about the setting on this page:

http://doc.essentialobjects.com/library/1/ajaxuploader/troubleshoot.aspx

Thanks!
ibm5108735
Posted: Wednesday, March 25, 2009 12:50:09 AM
Rank: Newbie
Groups: Member

Joined: 4/18/2008
Posts: 9
I was not aware of this maxAllowedContentLength setting. I have updated my web.config (webserver section) to set a value for maxAllowedContentLength. This has solved the issue.

Thx again for the helpful information.
eo_support
Posted: Wednesday, March 25, 2009 9:08:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Thanks for the update. I am glad that it works for you!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.