Hello,
I have recently migrated our website to ASP.Net 3.5 with RadControls for ASP.Net AJAX Q1 2008 (the last release we had access to). Our site also is integrated to Community Server.
In one portion of the site, there is an error in the interaction of the two packages, resulting in the error "Script controls may not be registered before PreRender". The full trace follows at the end of this post. The problem occurs when a radMenu is placed in a template as part of the community server skinning/templating system.
The reproduction shows that the error does not occur when the menu is used outside of the template, and also does not occur when a ScriptManager element is used in the template without a menu. The error occurs when the menu is used within the template.
I have isolated the required Community Server components needed to reproduce the problem, and have created a small project that demonstrates the issue. Please let me know where I can send the zip file of the solution.
Thank you,
Lisa Hakesley
------------------------
Script controls may not be registered before PreRender.
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.InvalidOperationException: Script controls may not be registered before PreRender.
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:
[InvalidOperationException: Script controls may not be registered before PreRender.]
System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +347825
System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66
Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +29
Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +22
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053