« Previous Next »

Thread: Scripting error

Last post 07-08-2009 2:09 AM by bapo_10@hotmail.com. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-01-2009, 4:11 AM

    Scripting error

    I have my web site up and running. It has debug enabled (I know I shouldn't - but it has), When I connect over a slow connection the system timesout and hangs the application (code behind no longer executes even on re-entry to the site).

     The specific error is line 513Sys.Webforms.PagerequestmanagerTimeOutexception: TheServer requestTimedOut and i can drop into the VS debugger to view the error.

    If I turn off debugging is this gonna cure this problem - it's difficult to repeat and spasmodic in nature!

     Any help appreciated. 

     

  • 07-01-2009, 10:59 AM In reply to

    Re: Scripting error

    bapo_10@hotmail.com:
    If I turn off debugging is this gonna cure this problem

    There's an easy way to find out...  :)

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 07-06-2009, 4:32 AM In reply to

    Re: Scripting error

    Hi

    Please check the following article:
    Sys.WebForms.PageRequestManagerTimeoutException
    http://msdn.microsoft.com/en-us/library/bb310955.aspx

    Also, you can get more valuable suggestions at our ASP.Net forum.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 07-08-2009, 2:09 AM In reply to

    Re: Scripting error

    Thanks for the response I implemented the AsyncPostBackTimeout. I'm a bit of a novice at this stuff but if I include something like the following where updateCatchLog is a link to my database of c# caught errors - is this a way of clearing and recording the error. I'm finding it difficult to test because the errors come infrequently. Any further advise on these matters is appreciated

    .. and thanks again

    <script language="c#" runat="server" >void Page_Error(object sender, EventArgs e)

    {

    try

    {

    string errorMessage = "Error occurred" + Server.GetLastError();

    Server.ClearError();

    throw new ArgumentException(errorMessage);

    }

    catch (Exception ex)

    {

    funcs.updateCatchLog(ex);

    }

    finally

    {

    }

    }

    </script>

Page 1 of 1 (4 items)