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

[Solved] Sys.Webforms.PageRequestManager is null or not an object

5 Answers 264 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sid
Top achievements
Rank 1
Sid asked on 11 Mar 2009, 08:28 AM

Hi,

I have recently upgraded my .net 1.1 project to .net 3.5 and replaced RADControls for ASP with RADControls for ASP.NET AJAX.

I get the following Javascript error "Sys.Webforms.PageRequestManager is null or not an object" on the page.

I have tried the following..

- Verify that the Web.Config is setup correctly.(http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx)

- There is  no xHtmlConformance element in Web.Config.

When I view the source code for the aspx page, I don't see the element Sys.WebForms.PageRequestManager anywhere in the code.

Please suggest if I am missing something on the page which generates the Sys.WebForms.PageRequestManager object.


Thanks in advance....

 

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 11 Mar 2009, 11:22 AM
Hello Sid,

Can you confirm that you added ScriptManager control on the problematic page as explained here?

Check it out and let me know how it goes.

Best wishes,
Iana
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
Sid
Top achievements
Rank 1
answered on 11 Mar 2009, 05:24 PM

I have added scriptmanager on the page as given below.

 

 

<body style="MARGIN: 0px; WIDTH: 100%; HEIGHT: 100%" scroll="no">

 

 

 

<form id="frmEPlan" style="MARGIN: 0px; WIDTH: 100%; HEIGHT: 100%" method="post" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server" LoadScriptsBeforeUI="true"></asp:ScriptManager>
......

 

0
Iana Tsolova
Telerik team
answered on 13 Mar 2009, 01:02 PM
Hello Sid,

From the provided information, for me it seems that you configured you web page/site properly and I am not able to see what could have caused the error. Therefore I suggest that you open a formal support ticket and send me a sample illustrating the issue so I could perform further investigations and testing.

Best wishes,
Iana
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
Mangesh
Top achievements
Rank 1
answered on 09 Jun 2009, 05:41 AM
Hi,

I am facing same issue and not getting solution anywhere. Is there any updated post available regarding this?
I have already read "Eilon Lipton's Blog" and is of no use for me.

My scenario:
I have a grid which has a link in header having name "Add New". When user clicks on this link, new row gets added in the grid. I am Ajaxifying my grid for this functionality.

Various things I tried from blogs are:

1. EnableEventValidation="false" in page directive
2.EnablePartialRendering="true" and LoadScriptsBeforeUI="true" in asp:ScriptManager.

One strange thing I observed is I get above error if I use virtual directory for my application but if I use 'Visual Studio Development Server', the error won't occurs in development environment. However, Sys.Webforms.PageRequestManagerParsorErrorException occurs sometimes on clicking of add new link on staging environment.
0
Iana Tsolova
Telerik team
answered on 09 Jun 2009, 10:00 AM
Hi Mangesh,

When an error exception of time Sys.Webforms.PageRequestManagerParsorErrorException  is thrown, this most probable reasons that you are using Trial version of the controls and Telerik trial message pops up, or there is some server errors on the page. Therefore I suggest that you try disabling ajax and, debug the project and see if any conflicts arise.

Let me know how it goes.

Greetings,
Iana
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
Ajax
Asked by
Sid
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Sid
Top achievements
Rank 1
Mangesh
Top achievements
Rank 1
Share this question
or