This is a migrated thread and some comments may be shown as answers.

Sys.WebForms.PageRequestManagerServerErrorException

10 Answers 734 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig Smith
Top achievements
Rank 1
Craig Smith asked on 22 Jul 2009, 06:08 PM
On one of my pages I'm getting this error when I click on the calender control on my page...

Error: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

It doesn't give the error when I run from VS 2008 but when I promote to any other server I get the error. It only happens when I click on the calender control.

I searched these forums (and others) and have tried all of the suggestions (there are no response.writes, response.transfers, or anything like that).

10 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 23 Jul 2009, 08:36 AM
Hello Craig,

The reasons for this error may vary and that is why I suggest you perform some troubleshooting using the tips from this documentation topic:

http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html

and the blog posted pointed below:

http://blogs.telerik.com/atanaskorchev/posts/08-07-18/web_resources_demystified_part_3_troubleshooting.aspx

Keep us informed about your findings.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nathan Yaskiw
Top achievements
Rank 1
answered on 28 Jul 2009, 10:52 PM
Craig was just the overseer of this project, I'm the actual developer. He's going to be gone for a while, but I'd like to have this fixed sooner rather then later.

Like Craig said it only happens when its deployed on a server. Basically I've got two RadCalendars, which supply a to and a from date to select data from the Database. It works perfectly fine when Debugging from a local machine. I've gone through the steps with both the documentation and the blog. I don't come across a 404, though I went through some of those steps anyways to be safe, and it still does not work.

Upon some rigorous testing I STILL can't pinpoint where the error is. Basically I've got a Rad Grid and 2 RadCalendars. When I select a To and a From date from their respective Calendars the Grid is to be updated with logs from between those two dates. Here's the wacky-ness: It won't throw an error if I choose dates between July 1st through to the 12th, but anything outside of that throws the error. It will display all the logs in the radgrid if I choose any of those dates between 1 and 12, despite the logs not even Starting till July 15th.

I would normally think that this is a logic error on my own part - except for the fact that it works flawlessly when debugged from a local machine.

How should I proceed? What information can I give you besides that error that Craig has posted above?

 

0
Sebastian
Telerik team
answered on 31 Jul 2009, 04:07 PM
Hello Nathan,

This is indeed an odd issue and unfortunately from the provided details I am still not able to determine the reason for it.

To progress in the investigation, is it possible for you to provide a live url where the erratic behavior can be reproduced? You may also inspect the traffic between the client and the server using the Fiddler tool and share the results of the session with us. Thus we will do everything possible to provide up-to-the-point explanation/fix.

Also verify that you are using the latest version 2009.2.701 of RadControls for ASP.NET AJAX in your project.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
bleutiger
Top achievements
Rank 2
answered on 04 Aug 2009, 01:14 PM
I am also having the same problem on both my development machine and a testing server environment.  I don't believe it has anything to do with the calendars I think it has to do with the Grid on your page because that is all I have on my page.

My page has a grid with a link button column which when clicked sends a value to be inserted in the database and then post back to the page.  I doesn't change the data in the grid at all...and by design it is not supposed to...however, if I click another link in the grid  or even the same link, after the post back, I get the error described.

Sys.Webforms.PageRequestManagerServerErrorException

Does this give more insight into the problem Telerik Team?

Yes I have the latest and greatest Rad Controls..
0
Sebastian
Telerik team
answered on 04 Aug 2009, 01:19 PM
Hi bleutiger,

The exception you receive is rather generic and you will probably agree with me that it would be hard to determine the exact source of it based on the details provided. Can you isolate a simple working version of your project, exhibiting it, and send it enclosed to a regular support ticket? Thus I will research the matter further and will do everything possible to provide an accurate fix.

You may also examine the RadControls troubleshooting tips from this help article and utilize them to gather more info about the nature of the problem.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
bleutiger
Top achievements
Rank 2
answered on 04 Aug 2009, 06:51 PM
I am not sure about the other gentlemans code but this is the code that was causing the error...although I am still not sure why.

I hope this helps someone else...


<telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>



 

0
Sérgio
Top achievements
Rank 1
answered on 15 Jun 2011, 04:48 PM
I also had that problem today.
It was a struggle to find out the origin of the problem, but I've found that it was on the ObjectDataSource's defined inside the aspx file.
Somehow, It seams this kind of approach doesn't work within the AJAX postback. So I decided to do the DataSource programmatically and resolved the problem.

Hope this it can help other people too.
0
Andy
Top achievements
Rank 1
answered on 30 Jun 2011, 04:06 PM
Sergio,

Can you explain what exactly you did to resolve this problem?  I am seeing this same issue on one of my sites, I have narrowed it down to this part of code when trying to fill the grid.  Works on first run, but on the postback throws the above errors that everyone else is seeing.
grdTransLog.DataSource = DirectCast(Me.Page, BasePage).reqDBUtils.GetDataTable(sSql, {{"@ID", nId}})
grdTransLog.DataBind()

Thanks,
Andy
0
Andy
Top achievements
Rank 1
answered on 30 Jun 2011, 05:19 PM
I ended up using the needdatasource event, solved all my problems.
0
Sérgio
Top achievements
Rank 1
answered on 30 Jun 2011, 05:24 PM
In my case, my page has several tabs defined with RadTabStrip and RadMultiPage. Each RadMultiPage item has a user control in it.
Since my main page has defined a  RadAjaxManager, i had to define a telerik:RadAjaxManagerProxy inside the user controls.
My problem was defining the datasourceid on the RadGrid directly on the aspx file. So I've changed it and use the "OnNeedDataSource" event, and get the datasource programmatically.



So, my user control aspx became something like this:

...
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
   <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="RadGrid_Test">
           <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="RadGrid_Test" LoadingPanelID="RadAjaxLoadingPanel1" />
           </UpdatedControls>
       </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


<telerik:RadGrid ID="RadGrid_Test" runat="server"
                OnNeedDataSource="RadGrid_Test_OnNeedDataSource"
                ....
</telerik:RadGrid>



And my cs:

    protected void RadGrid_Test_OnNeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
// get your datasource... an example:
            RadGrid_Test.DataSource = (DataTable)Session["datatable_test"];
    }


Hope this helps you.
Sérgio Martins



Edited: You've reached the same solution (and posted it) 4 minutes ago... :-)
Tags
General Discussions
Asked by
Craig Smith
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Nathan Yaskiw
Top achievements
Rank 1
bleutiger
Top achievements
Rank 2
Sérgio
Top achievements
Rank 1
Andy
Top achievements
Rank 1
Share this question
or