The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

[CLOSED] Getting "Request Failure Status code: Status Text: communication failure in latest version 4.5.1

  1. #1

    [CLOSED] Getting "Request Failure Status code: Status Text: communication failure in latest version 4.5.1

    I am getting error while loading data through ajax call into grid. For processing of data from database it will take approx. 1 min 30 sec. in that case i am getting error message: Request Failure Status code: Status Text: communication failure. (I am not able to close that box also).
    Below is my code:
    .Store(storeitem =>
        .Listeners(listen => { listen.Load.Fn = "onGridLoad"; })
        .Model(model => model.Add(Html.X().Model()
        .Fields(fields =>
    As per forum i have added below tag in Web.config but still i am getting above error message.
    In Web.config file
    in Controller side:
    but still getting error.
    Last edited by fabricio.murta; May 31, 2018 at 11:49 AM.
  2. #2
    Hello @Mohammedrafi!

    Thanks for taking your time to research the forums for the answer on the issue you are facing.

    It looks like your issue is more related to the ajax proxy's timeout, as you have a store with a BuildProxy reference. But I'm not really sure where and how you got that BuildProxy() implementation. Probably therein you can set the effective timeout for the proxy loading, if that's the issue.

    In the case of the listener, I suppose onGridLoad is calling a direct method somehow? You probably can set up the timeout by the time you call it, instead of setting global timeouts.

    Unfortunately with the information you provided we can't get much further on assumptions of how to help you solve your issue. Ideally, if you could provide a full and runnable test case, we could pinpoint where and what you should change in order to implement the longer timeout you need.

    Anyway, according to docs, the ajaxTimeout setting should have worked for you, as it is a rather global setting. There must be something else overriding the timeout in the lines you didn't share in your report. In this thread we used this setting to solve a similar problem: Timeout problem with page proxy.

    If the above does not help, please provide runnable code sample having our guidelines in mind:
    - Tips for creating simplified code samples
    - More Information Required
    - Forum Guidelines

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thank you for your reply. But same code is running with 2.5.1 version on local and production server without any issue's.
    I removed the function "onGridLoad" but facing same issue. This issue's coming after we migrate from 2.5.1 version to latest version 4.5.1

    Thank you.
  4. #4
    Hello @Mohammedrafi!

    Thanks for the follow up. There may be some kind of regression or just logic that changed from 2.5.1 to 4.5.1, they're two major versions away.

    If you can provide a runnable test case where we can reproduce your scenario we'll do our best to provide you instructions on how to overcome the issue, and if that's the case, we'll be able to understand what exactly is wrong with Ext.NET so we can correct the issue. But without being able to reproduce the issue at our end we are just unable to help.

    I hope you understand, and looking forward to additional information that may help us be able to help you.
    Fabrício Murta
    Developer & Support Expert
  5. #5
    I resolved the above issue by placing Html.X().AjaxProxy().Timeout(1800000) at BuildProxy method. :

            public static Store.Builder BuildProxy(this Store.Builder store, string Url, string UniqueId = "")
                Url = new UrlHelper(HttpContext.Current.Request.RequestContext).Content(Url);
                if (!string.IsNullOrEmpty(Url))
                    string token = GenerateToken(Url, UniqueId);
                    store.Proxy(proxy => proxy.Add(Html.X().AjaxProxy().Timeout(1800000).Headers(header =>
                                            header.Add(new Ext.Net.Parameter { Name = "Accept", Value = "application/json" });
                                            header.Add(new Ext.Net.Parameter
                                                Name = "REQUEST-X-TOKEN",
                                                Value = token.EncryptHashBase64()
                                            .Reader(reader => reader.Add(Html.X().JsonReader().RootProperty("data")))
                return store;
    You may close this thread.
    Last edited by MOHAMMEDRAFI; May 31, 2018 at 10:25 AM.
  6. #6
    Hello @Mohammedrafi!

    Glad you could find a solution that worked in your scenario, and thanks for sharing the outcome, we really appreciate that! Hope the directions provided helped you finding it.

    We'll be marking the thread as closed now, then.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Request failure - status code 200
    By Holly in forum 2.x Help
    Replies: 1
    Last Post: Feb 26, 2014, 3:30 AM
  2. Replies: 1
    Last Post: Nov 28, 2013, 6:34 AM
  3. Status Text : Communication failure
    By matthew in forum 2.x Help
    Replies: 0
    Last Post: Jul 23, 2013, 7:02 AM
  4. Replies: 5
    Last Post: May 27, 2013, 5:30 AM
  5. Replies: 16
    Last Post: Oct 04, 2011, 5:17 PM

Posting Permissions