Welcome Guest Search | Active Topics | Sign In | Register

timeout AJAX call to the server times out. Options
Yoann
Posted: Thursday, September 10, 2009 6:19:48 AM
Rank: Newbie
Groups: Member

Joined: 6/5/2009
Posts: 7
Hello,

I have been through the answer posted in this forum, and the troubleshoot page , but This was of no help to me. I still have this problem when uploading large file (96 Mo).

I can see in Firefox that the upload has started, but after some time I receive this following error message : timeout AJAX call to the server times out.

Here are some part from my web.config :

Code: XML
<system.web>
    <httpRuntime maxRequestLength="2097151" executionTimeout="2400" shutdownTimeout="2400" />
        <sessionState timeout="2500"></sessionState>
    </system.web>
    <system.webServer>
      <security>
          <requestFiltering>
          <requestLimits maxAllowedContentLength="100000000"  ></requestLimits>
        </requestFiltering>
      </security>
    </system.webServer>


I am using IIS7 and I have even changed parameters in the IIS Console to allow very big timeout and contentlength wherever i could find it.

here is my code :

Code: HTML/ASPX
<script language=javascript>
    function eoError(control, error, message) {
        if (error == "max_size_exceeded")
            alert("<%# MaxSizeError %>");
        else if (error == "extension_not_allowed")
            alert("<%# ExtensionNotAllowedError %>");
        else
            alert(error + " " + message);
    }
</script>
<div class="reset-upload">
<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:C_EO_AjaxUploader;Parameter:}">
<eo:AJAXUploader runat="server" id="C_EO_AjaxUploader" MaxFileCount="1" AutoPostBack="true" AutoUpload="true" SkinID="photoImageUpload"
 ClientSideOnError="eoError" ClientSideOnStart="uploadStart" ClientSideOnDone="uploadEnd" ClientSideOnProgress="uploadProgress" OnFileUploaded="OnFileUploaded"   >
	<LayoutTemplate>
        <img runat=server id=C_Img_UploadedVideo />
        <asp:PlaceHolder id="InputPlaceHolder" runat="server"></asp:PlaceHolder>
	</LayoutTemplate>
</eo:AJAXUploader>
</eo:CallbackPanel>
</div>


Code: JavaScript
$(function() {
    $("#progressDialog").dialog({
        autoOpen: false,
        bgiframe: true,
        modal: true,
        draggable: false,
        resizeable: false,
    });

});

 function uploadStart() {
 /*
    $("#progressDialog").dialog({
        autoOpen: false,
        bgiframe: true,
        modal: true,
        draggable: false,
        resizeable: false,
    });
*/
    document.getElementById("progressDialog-percentage").innerHTML = "0 %";
    $("#progressDialog").show();
    $("#progressDialog").dialog('open');
}

function uploadEnd() {
    $("#progressDialog").dialog('close');
}

function uploadProgress(uploader, total, received) {
    var percent = Math.ceil((received/total)*100);
    document.getElementById("progressDialog-percentage").innerHTML = percent + " %";
    document.getElementById("progressDialog-indicator").style.width = percent + "%";
   
}


Is there something I am missing?

Thanks for your support,


Yoann

EDIT: I have tried with file up to 82 Mo and it worked fine.. I do not know what is happening for bigger files..
eo_support
Posted: Thursday, September 10, 2009 9:29:09 AM
Rank: Administration
Groups: Administration

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

Can you try to copy the file to your local harddrive (if it is on a network drive), then upload the same file with our sample project and see if it works?

Thanks!
Yoann
Posted: Thursday, September 10, 2009 9:59:04 AM
Rank: Newbie
Groups: Member

Joined: 6/5/2009
Posts: 7
there is a time out too when using the sample project , I choosed AjaxUploader, Standard features.

Thanks for helping,

Yoann
eo_support
Posted: Thursday, September 10, 2009 11:39:48 AM
Rank: Administration
Groups: Administration

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

We will need to take a look on your machine then. We tried the same at here and we can not see the problem. We use GotoMeeting to do remote sessions. Please let us know when it would be conveinent for you.

Thanks!
Dan
Posted: Monday, September 21, 2009 2:45:44 PM
Rank: Member
Groups: Member

Joined: 6/3/2009
Posts: 27
Has this problem been resolved? We are still having the same issue, currently with just one of our customers. However, I just need to be able to say with a fair amount of certainty what is causing the problem. The client browser is IE6 .. is that a problem? We were able to replicate several times .. 32mb file got to 17% done before throwing an error, which we trapped as the "AJAX call to the server times out" error.
Kris Brietkopf
Posted: Sunday, October 11, 2009 12:08:35 AM
Rank: Member
Groups: Member

Joined: 3/24/2008
Posts: 12
I am having the same problem that is being discussed here about timing out. In my scenario I can't get past the 4096 byte limit imposed by IIS. I have added all the suggested code including changing the web.config file. Does anyone have any other ideas not already mentioned or am I still missing something?
Code: Visual Basic.NET
eo_support
Posted: Monday, October 12, 2009 8:33:34 AM
Rank: Administration
Groups: Administration

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

Try to run it locally or on another server to make sure it is not some other modules on your server. The file is always posted to the server, so the 4096 bytes limit does not matter. You can also try to verify whether it's a server problem by using a plain HTML file input element as shown here (scroll to the bottom):

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

Thanks
Yoann
Posted: Monday, October 12, 2009 8:52:10 AM
Rank: Newbie
Groups: Member

Joined: 6/5/2009
Posts: 7
My problem of time out has passed. I had to pass every time out value in my application to a big number so to be sure. since then didn't had time to investigate to say wich one was causing it :

Code: XML
<httpRuntime maxRequestLength="2097151" executionTimeout="2400" shutdownTimeout="2400" />
<sessionState timeout="2500"></sessionState>


and in the page :

Code: C#
protected override void OnInit(EventArgs e)
    {
        //Put 40 minutes as time out for this page
        Server.ScriptTimeout = 2400;

        base.OnInit(e);
    }


Hope it helps someone,
eo_support
Posted: Monday, October 12, 2009 9:09:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Yoann, thank you very much for sharing!


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.