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

[Solved] Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: undefined.

3 Answers 362 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
QualiWareUA
Top achievements
Rank 1
QualiWareUA asked on 27 Apr 2008, 11:57 AM
Hello,

I have the following error on my page:

Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: undefined.

When I start debugging the code that is running is as follows:

if (error && !errorHandled) {
    // DevDiv 89485: throw, don't alert()
    throw error;
}

Details: the page contains splitter with two panes and splitter bar between them. In the left pane there is a tree view, in the right, grid view. Clicking on tree nodes updates grid. after some clicks I get this error. All controls are by Telerik. Any help would be highly appreciated.

3 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 28 Apr 2008, 03:06 PM
Vlad-

The fastest and best way to solve a problem like this is to package-up a small demo app that replicates the problem and send it to our support team via a support ticket. That enables us to see exactly how you've implemented your code and quickly identify the problem. It also gets you the fastest answer as it can be hard to debug problems like this in the forums.

If that works for you, open a new support ticket via your Client.net page and send your demo app that exhibits this behavior. Hope that helps.

-Todd
0
QualiWareUA
Top achievements
Rank 1
answered on 28 Apr 2008, 07:21 PM
It seems that the problem is as follows: when I click the nodes in the tree view quickly enough to overlap previous asynchronous request, I get this error. As I see it, the optimal way would be to disable the form while request is being processed. What is the right way to to this: server-, client-side?
0
Konstantin Petkov
Telerik team
answered on 29 Apr 2008, 08:24 AM
Hello Vladimir,

You can use the technique explained in this article: Disabling controls during AJAX. Note that the official RadAjax for ASP.NET AJAX also provides the ability to queue the AJAX requests:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RequestQueueSize="5"
        </telerik:RadAjaxManager> 

so that the subsequent request are not ignored.

I hope this information helps!

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
QualiWareUA
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
QualiWareUA
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or