RadAjaxManager on Masterpage results in exception
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">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
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
>
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
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