1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / RadAjaxManager on Masterpage results in exception

RadAjaxManager on Masterpage results in exception

2 posts, 0 answered
  1. Bob Evans
    Bob Evans avatar
    19 posts
    Registered:
    22 Jun 2012
    17 Dec 2010
    Link to this post
    Sitefinity version: 4.0.992.0 (RC)

    When placing a RadAjaxManager control within a masterpage and then attempting to use this custom masterpage as a page layout results in an error.  It doesn't seem to depend on the complexity of the master, either.

    Master (placed within the App_Master folder):

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Test.master.cs" Inherits="SitefinityWebApp.App_Master.Test" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadAjaxManager ID="AjaxManagerControl" runat="server" />
        <div>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder>
        </div>
        </form>
    </body>
    </html>

    Error:

    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
     
    Stack Trace:
     
    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +234
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.PreRenderRecursiveInternal() +112
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4184
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Dec 2010
    Link to this post
    Hello Bob,

    We testes the same template with Sitefinity RC2 released yesterday and we are not able to replicate the issue. Could you upgrade the project you have and give a try?

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered