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

Viewstate in Session and timeout issues

4 Answers 358 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 30 Apr 2009, 10:08 PM

I'm using Q1 2009 Telerik controls and I've got a major issue with timeouts.

On my development box, my session or something seems to be timing out in 15 minutes, even though I've got the timeout set to 240 minutes, which is the value returned by session.timeout.

I was using using Return New SessionPageStatePersister(MyBase.Page) and a browser file to put the viewstate in Session and thinking that might be the issue, I switched to use Teleriks method as described in
http://www.telerik.com/support/kb/aspnet-ajax/general/saving-the-viewstate-of-radcontrols-server-side.aspx

Same issue, same results.

Multiple developers using Vista, all getting the same results, and our production box is Windows 2003, which is also timing out.

It's not always 15 mintues, it varies from just a few seconds to 15 minutes.

I enabled script debugging in my browser, and the error is a msajx.js.

I ran the application in debug mode, let it set and same restuls, I got the JS error before it hit my breakpoint in code.

Any suggestion in how to track this down even further to determine the root of this issue would be greatly appreciated.

Thanks in advance

Roger



4 Answers, 1 is accepted

Sort by
0
Roger
Top achievements
Rank 1
answered on 01 May 2009, 04:39 PM

The error I'm getting is sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

I've been digging and found 

http://forums.asp.net/p/1069384/1555817.aspx and 

 

http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx

With no luck as of yet.

Although it does seem to be consistently 15 minutes on my machine, before the error occurs, which is only seen if I Enable Script Debugging in my browser, otherwise, I just see the message in the bottom of  the browser status bar, and the page discontinues to function.

Any suggestion in how to resolve this would be greatly appreciated.

0
Atanas Korchev
Telerik team
answered on 04 May 2009, 08:54 AM
Hello Roger,

The nullreference exception is a server side error reported by ASP.NET ajax. You can try temporarily disabling Ajax and see what the actual server error is. Perhaps the full stacktrace would indicate the reason for the problem.
 
Regards,
Albert
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
Roger
Top achievements
Rank 1
answered on 04 May 2009, 02:01 PM
What would be the easiest way to disable AJAX?
0
Atanas Korchev
Telerik team
answered on 04 May 2009, 02:34 PM
Hi Roger,

It is to set the EnableAjax property of your RadAjaxManager or RadAjaxPanel to false.

Regards,
Albert
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.
Tags
General Discussions
Asked by
Roger
Top achievements
Rank 1
Answers by
Roger
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or