[CLOSED] [0.8.1] Transaction Aborted

  1. #1

    [CLOSED] [0.8.1] Transaction Aborted

    Hi, I am having this issue and its driving me nuts.

    When I am developing, I add a couple of break points to step into code, but most of the time it takes more than 30 secs to review your code, etc. After I finish I finally let the application run I get this Transaction Aborted Error.

    I have several AjaxMethods and a couple of Coolite's ScripManagers throughout the entire application. I have tried this on my master page with no results (Of course some pages don't use the Master Page at all).


    <ext:ScriptManager ID="ScriptManager1" runat="server">
        <Listeners>
            <DocumentReady Handler="Coolite.AjaxEvent.timeout = 120000;" />
        </Listeners>
    </ext:ScriptManager>
    But still, I get this Transaction Aborted Error. More over, I have a few services that might take sometimes more than 30 secs to load data in different pages, so I cant really know who is taking more time.

    Is there a solution where I can add in a global way the timeout forthe AjaxRequest like in the webconfig or something?
    Last edited by geoffrey.mcgill; Aug 25, 2010 at 6:34 PM. Reason: please use [CODE] tags, [CLOSED]
  2. #2
    Hello!

    Please just use the Timeout property of AjaxEvent.

    Example
    @ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Button_Click(object sender, AjaxEventArgs e)
        {
            Ext.Msg.Alert("Server", "Hello!").Show();
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Coolite Toolkit Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ScriptManager runat="server" />
        <ext:Button runat="server" Text="Click me">
            <AjaxEvents>
                <Click OnEvent="Button_Click" Timeout="50000"/>
            </AjaxEvents>
        </ext:Button>
        </form>
    </body>
    </html>
  3. #3
    Excuse me, I just realized that you need a global way.

    Please try the following thing within the <head>.

    Example
    <ext:ScriptContainer runat="server" />
    
    <script type="text/javascript">
        Ext.data.Connection.override({
            timeout: 120000
        });
        Ext.Ajax.timeout = 120000;
        Coolite.AjaxEvent.timeout = 120000;
    </script>
  4. #4
    This works great for this tiny example, but in reality I have dozens of coolite controls all over my application. Do I have to set this property for eachone of them?


    Edit: You ninja post! I will try the second solution.
  5. #5
    Thanks this solved the problem
  6. #6

    What is the solution

    Quote Originally Posted by cobiscorp View Post
    Thanks this solved the problem
    Hi cobiscorp;
    How did you solve it, Setting ajaxmethod Timeout properrty didn't affect my solution, always being 30 second(default) when i set it 120000
  7. #7
    Hi, I just added this to my default page. In my case the defaul page is always alive the content site renderes on an IFrame. Otherwise you have to add this to your master page or every single page.

    <ext:ScriptContainer runat="server" />   <script type="text/javascript">     Ext.data.Connection.override({         timeout: 120000     });     Ext.Ajax.timeout = 120000;     Coolite.AjaxEvent.timeout = 120000; </script>
  8. #8
    Quote Originally Posted by cobiscorp View Post
    Hi, I just added this to my default page. In my case the defaul page is always alive the content site renderes on an IFrame. Otherwise you have to add this to your master page or every single page.

    <ext:ScriptContainer runat="server" />   <script type="text/javascript">     Ext.data.Connection.override({         timeout: 120000     });     Ext.Ajax.timeout = 120000;     Coolite.AjaxEvent.timeout = 120000; </script>
    Thanks cobiscorp; it works for me too. But dont need to <ext:ScriptContainer runat="server" /> this line if your page contains scriptmanager.

Similar Threads

  1. [CLOSED] Transaction Aborted
    By majunior in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 21, 2011, 12:42 PM
  2. [CLOSED] Transaction Aborted
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 23, 2011, 8:32 AM
  3. Transaction aborted
    By norphos in forum 1.x Help
    Replies: 0
    Last Post: Jul 11, 2011, 11:47 AM
  4. [CLOSED] Transaction aborted
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 05, 2010, 10:11 AM
  5. [CLOSED] transaction aborted
    By ilanga in forum 1.x Legacy Premium Help
    Replies: 24
    Last Post: Sep 16, 2010, 8:08 AM

Tags for this Thread

Posting Permissions