Pop up error messages (Sys.WebForms.PageRequestManagerServerErrorException)

Last post 05-09-2008 6:49 AM by RabBell. 3 replies.

Sort Posts:

  • Pop up error messages (Sys.WebForms.PageRequestManagerServerErrorException)

    05-07-2008, 5:01 AM
    • Loading...
    • RabBell
    • Joined on 08-21-2006, 2:28 PM
    • Posts 173

    I have an RSS Feed Reader that I'm having problems with.

    The problem is I'm getting pop-up error messages every now and then and I suspect these are being triggered when the RSS feed is being updated. Now if the page hits an exception it should refresh the RSS Feed (not the page, just the feed) and it works. In fact when you get the pop-up error (client side error messages pop ups, similar to a javascript alert box), if you refresh the page works.

    But I can't tell the page to refresh when I get this pop-up message. I have a try, catch which will reload the data when an error occurs and the page works fine when the data is reloaded, but cause of the pop-up the try, catch isn't being triggered.

    The text in the error message is usually

        Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404

    Although sometimes the status code is 500 rather then 440

    Does anyone know how to disable these error messages (the pop-up kind) and let the catch commands run?

  • Re: Pop up error messages (Sys.WebForms.PageRequestManagerServerErrorException)

    05-07-2008, 12:22 PM
    Answer
    • Loading...
    • vgiambattista
    • Joined on 01-13-2006, 2:40 PM
    • Atlanta, GA
    • Posts 91

    Rab,

    You have an UpdateProgress control on your page, right?  It sounds like that's what is catching your exception and rethrowing it in an alert window.

    As for the rest, it sounds as if the code in your catch block is throwing the unhandled exception.  Even though you have a try catch block for the first call, if your catch block is simply trying to call the rss feed again, and this fails again, you will end up with an unhandled exception that bubbles up to the UpdateProgress control.  You'll need to refactor your code -- for a quick fix, you can try putting another try - catch block inside your catch block, and then swallow the exception if it fails on the second attempt.

    James

    James Ashley, Magenic Technologies
    (james.ashley.magenic@gmail.com)
  • Re: Pop up error messages (Sys.WebForms.PageRequestManagerServerErrorException)

    05-07-2008, 11:12 PM
    • Loading...
    • jmmmmm
    • Joined on 02-28-2008, 6:22 AM
    • Norfolk Va
    • Posts 5

    Im having this error as well. Im using a timer control and know where its coming from I just cant seem to trap it no matter where I place try blocks.

  • Re: Pop up error messages (Sys.WebForms.PageRequestManagerServerErrorException)

    05-09-2008, 6:49 AM
    • Loading...
    • RabBell
    • Joined on 08-21-2006, 2:28 PM
    • Posts 173

    thanks, I'll try that

    I added the nested try, catch code below

    1    Catch ex As Exception
    2              Try
    3                Catch excep As Exception
    4                    ReloadValues()
    5                    Try
    6                    Catch exception As Exception
    7                        Dim err As New errors
    8                        err.handleerrors(ex)
    9                        err = Nothing
    10                   End Try
    11               End Try
    12           End Try
    

    The function ReloadValues reloads the RSS Feed into 2 arraylists. And the handleerrors function adds the exception message and stacktrace to a text file (eventually changing to an email to me)

    I'll try this, hope it works

     

Page 1 of 1 (4 items)