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

15 posts, 0 answers
  1. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 09 Nov 2008 Link to this post

    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

  2. Petko
    Admin
    Petko avatar
    45 posts

    Posted 10 Nov 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jim
    Jim avatar
    19 posts
    Member since:
    Feb 2008

    Posted 22 Nov 2008 Link to this post

    I am struggling with this problem as well.  Has anyone produced a solution?
  5. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 23 Nov 2008 Link to this post

    No solution has been found so far.
  6. Christopher Bishop
    Christopher Bishop avatar
    50 posts
    Member since:
    May 2008

    Posted 23 Nov 2008 Link to this post

    What version of .net are you running? I am using 3.5 and everyone of my pages is ajax and formdecorator...
  7. Jason Lee
    Jason Lee avatar
    185 posts
    Member since:
    Oct 2004

    Posted 03 Dec 2008 Link to this post

    Any solution for it? I have got the same problem
  8. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 03 Dec 2008 Link to this post

    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.
  9. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 04 Dec 2008 Link to this post

    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.
  10. Jason Lee
    Jason Lee avatar
    185 posts
    Member since:
    Oct 2004

    Posted 04 Dec 2008 Link to this post

    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
  11. Jim
    Jim avatar
    19 posts
    Member since:
    Feb 2008

    Posted 04 Dec 2008 Link to this post

    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.

     

     

     

  12. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 04 Dec 2008 Link to this post

    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"/>  
            --> 
  13. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Dec 2008 Link to this post

    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.
  14. vivek
    vivek avatar
    1 posts
    Member since:
    Jun 2008

    Posted 02 Jan 2009 Link to this post

    Commenting out

    <xhtmlConformance mode="Legacy"/>

    worked for me too..

    Telerik forum ROCKS..!
    Thanks...
    Vivek


  15. Kevin Schlegelmilch
    Kevin Schlegelmilch avatar
    5 posts
    Member since:
    Jan 2007

    Posted 04 Feb 2009 Link to this post

    Removing this from my web.config also "fixed" the error

    <xhtmlConformance mode="Legacy" />
  16. Mahdi
    Mahdi avatar
    1 posts
    Member since:
    Jan 2011

    Posted 23 Jan 2011 Link to this post

    Hi,

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

    Thanks
    Azadi@itafzar.ir
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017