RadAjaxManager on Masterpage results in exception

Posted by Community Admin on 04-Aug-2018 16:22

RadAjaxManager on Masterpage results in exception

All Replies

Posted by Community Admin on 17-Dec-2010 00:00

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

Posted by Community Admin on 23-Dec-2010 00:00

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

This thread is closed