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

FormDecorator Causes 'Sys.WebForms.PageRequestManager' is null or not an object Error on pages it is placed on

14 Answers 282 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
jgill
Top achievements
Rank 1
jgill asked on 10 Nov 2008, 01:47 AM
I am having an issue where regardless of the page it is placed on, the FormDecorator causes a JavaScript error.  The error is 'Sys.WebForms.PageRequestManager' is null or not an object and while it does not stop the user from using most regular pages, the error is ever present.

Is there a known cause and a way to remove this error?

Thank you,
Jonathan

14 Answers, 1 is accepted

Sort by
0
Petko
Telerik team
answered on 10 Nov 2008, 04:15 PM
Hi Jonathan Gill,

You can find more information about your problem here: http://forums.asp.net/p/1038782/1441161.aspx

If you can't find the way to fix this issue in the asp.net forum, you can open a support ticket and send us  your running project where we can observe the problem.Once we receive it, we will do our best to help you.

Greetings,
Petko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jim
Top achievements
Rank 1
answered on 23 Nov 2008, 03:03 AM
I am struggling with this problem as well.  Has anyone produced a solution?
0
jgill
Top achievements
Rank 1
answered on 23 Nov 2008, 08:00 PM
No solution has been found so far.
0
Christopher Bishop
Top achievements
Rank 2
answered on 23 Nov 2008, 09:52 PM
What version of .net are you running? I am using 3.5 and everyone of my pages is ajax and formdecorator...
0
Jason Lee
Top achievements
Rank 1
answered on 04 Dec 2008, 04:33 AM
Any solution for it? I have got the same problem
0
jgill
Top achievements
Rank 1
answered on 04 Dec 2008, 04:44 AM
I have not found a solution yet, but I have .NET 2.0 on my local machine while my webhost has 3.5 running and the problem occurs in both locations.
0
Tervel
Telerik team
answered on 04 Dec 2008, 09:55 AM
Hi everyone,

Searching on the web brings up a lot of forum threads, and ultimately they always refer to one single reason - and that is the use of
<system.web>
        
<xhtmlConformance mode="Legacy" />
    </
system.web>
in the web.config.

For more information please refer to the following blog post by Scott Gu -
http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx

This is not a problem with the RadFormDecorator per ce, but for any MS AJAX based control.
If you believe the problem is somewhere else, we will need some one of you to just send us in a support ticket a working project demonstrating the problem for us to examine.

Greetings,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jason Lee
Top achievements
Rank 1
answered on 04 Dec 2008, 12:18 PM
Dear Tervel,

I don't have
<system.web>
        
<xhtmlConformance mode="Legacy" />
    </
system.web>

in my web.config, but I still have the problem...
I have already open a ticket to you guys...
The ticket number is 178000.

In my example, if I remove the FormDecorator, it works what it execpt.
Thank you
0
Jim
Top achievements
Rank 1
answered on 04 Dec 2008, 04:27 PM

In one particular case I stopped getting the error when I switched from the RadScriptManager to the standard Microsoft ScriptManager. 

 

The combination of RadScriptManager + RadFormDecorator causes the problem in this case.

 

 

 

0
jgill
Top achievements
Rank 1
answered on 04 Dec 2008, 04:41 PM

The following worked for my situation where an MS AJAX Script Manager is present in a Master Page and the Rad Form Decorator is present on the page where the error occurs.  Commenting out/removing the XHTMLConformance in the Web.Config worked as Telerik and Scott Gu mentioned.

        <!-- This causes errors in many AJAX Scripts as ASP.NET 2.0+ Control Code is XHTML compliant.  
        <xhtmlConformance mode="Legacy"/>  
        --> 
0
Georgi Tunev
Telerik team
answered on 05 Dec 2008, 04:53 PM
Hi Jason,

Thank you for the project - now we see what the problem is. Yes, RadFormDecorator will throw such error if you disable the Ajax feature of the ScriptManager. This is a known issue and we will fix it soon.



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
vivek
Top achievements
Rank 1
answered on 02 Jan 2009, 07:43 PM
Commenting out

<xhtmlConformance mode="Legacy"/>

worked for me too..

Telerik forum ROCKS..!
Thanks...
Vivek


0
Kevin Schlegelmilch
Top achievements
Rank 1
answered on 04 Feb 2009, 08:43 PM
Removing this from my web.config also "fixed" the error

<xhtmlConformance mode="Legacy" />
0
Mahdi
Top achievements
Rank 1
answered on 23 Jan 2011, 08:07 AM
Hi,

I Removing this from my web.config and error fixed.
<xhtmlConformance mode="Legacy" />

Thanks
Azadi@itafzar.ir
Tags
FormDecorator
Asked by
jgill
Top achievements
Rank 1
Answers by
Petko
Telerik team
Jim
Top achievements
Rank 1
jgill
Top achievements
Rank 1
Christopher Bishop
Top achievements
Rank 2
Jason Lee
Top achievements
Rank 1
Tervel
Telerik team
Georgi Tunev
Telerik team
vivek
Top achievements
Rank 1
Kevin Schlegelmilch
Top achievements
Rank 1
Mahdi
Top achievements
Rank 1
Share this question
or