[CLOSED] Communication failure

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Communication failure

    Hello

    How could I avoid this message to be broadcast on ajax request? I already put a longuer timeout on store, ii there another thing I can do?
    Last edited by Daniil; Jan 15, 2013 at 4:09 AM. Reason: [CLOSED]
  2. #2
    Hi @feanor91,

    Please clarify do you want to determine the reason of this message or just suppress it?

    If the first, we need more details.

    If the second, please try to set up ShowWarningOnFailure="false" for the Store.
  3. #3
    I just want to suppress it, because I think the root cause is I ask to much to the server, but I play with timeout and it seems to work better. I had a lot of directmethod call too and "ShowWarningOnFailure" not exists on that.
  4. #4
    To suppress globally:
    <ext:ResourceManager runat="server" ShowWarningOnAjaxFailure="false" />
    Please note that it will suppress warning of any failure Ext.NET AJAX requests.

    There is the AjaxRequestException listener of ResourceManager. You could handle it and suppress a warning only if there is "Communication failure" in a response.
  5. #5
    How!

    This is this kind of information in Ext.Net book? I have bought it, but just read the begining now.

    Using this parameter allow to handle Failure function on direct method call for example?

    What is this parameter for : RethrowAjaxExceptions="True"?
  6. #6
    Quote Originally Posted by feanor91 View Post
    This is this kind of information in Ext.Net book? I have bought it, but just read the begining now.
    There is something about handling exceptions. I don't remember what exactly... But it is definitely worth to read.

    It is in the AJAX chapter.

    Quote Originally Posted by feanor91 View Post
    Using this parameter allow to handle Failure function on direct method call for example?
    Yes, setting up an AjaxRequestException listener, you are able to handle all failure DirectEvent and DirectMethod request.

    Quote Originally Posted by feanor91 View Post
    What is this parameter for : RethrowAjaxExceptions="True"?
    Somewhere in Ext.NET we catch exceptions using the try-catch blocks. Setting RethrowAjaxExceptions to true rethrows those exceptions from "catch" sections. It can be useful for handling exceptions globally, for example, in Global.asax.
  7. #7
    Quote Originally Posted by Daniil View Post
    Somewhere in Ext.NET we catch exceptions using the try-catch blocks. Setting RethrowAjaxExceptions to true rethrows those exceptions from "catch" sections. It can be useful for handling exceptions globally, for example, in Global.asax.
    Could you clarify please?

    Did you means if we have :

    DirectMethod A
    DirectMethod B

    StoreLoad C

    If an exeption occurs in one of this 3 (or a timeout) then, the RethroExeption will recal A, B or C loading? Automatically?
  8. #8
    No,
    By default, we catch all exceptions inside direct method and send to the client special flag (success: false)
    But if you register all exception on the server side (for example, in global catcher, in Global.asax for example) then you will not see that exception in your log

    If 'RethrowAjaxExceptions' is true then we throw exception again in 'catch' block, it will allow to register that exception in the global exception handler
  9. #9
    You are working late...

    Is an example available somewhere, because. I am not familiar with that concept of centalising exeption.
  10. #10
    - Please review that article and add global exception handler to your application
    http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx

    - Create simple test page with direct method
    - Inside direct method throw an exception
    - Test with 'RethrowAjaxExceptions=true' and 'RethrowAjaxExceptions=false' option of resource manager. If 'false' then you will not catch the exception in the global handler
Page 1 of 2 12 LastLast

Similar Threads

  1. Communication failure error when using Firefox
    By nicegaurav in forum 1.x Help
    Replies: 1
    Last Post: Nov 15, 2012, 6:44 PM
  2. Communication failure error in Firefox
    By nicegaurav in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2012, 9:18 AM
  3. Communication failure error in non-IE browser
    By Nhím Hổ Báo in forum 1.x Help
    Replies: 3
    Last Post: Apr 28, 2012, 7:07 AM
  4. Replies: 16
    Last Post: Oct 04, 2011, 5:17 PM
  5. [CLOSED] communication failure error
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 30, 2009, 11:11 AM

Posting Permissions