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

Forums / Bugs & Issues / 3.2 Events error

3.2 Events error

3 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    07 Mar 2008
    Link to this post
    I've created a new page and add on it events module. On page save it showed the following error. This is a 3.1 upgraded project and db to 3.2 Any suggestion?

    Server Error in '/' Application.

    The control with ID 'eventsSchedule' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    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: The control with ID 'eventsSchedule' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    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: The control with ID 'eventsSchedule' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
    Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +178
    Telerik.Web.UI.RadDataBoundControl.get_ScriptManager() +23
    Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +10
    Telerik.Web.UI.RadScheduler.OnPreRender(EventArgs e) +21
    System.Web.UI.Control.PreRenderRecursiveInternal() +77
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    10 Mar 2008
    Link to this post
    Hi Vagelis,

    I guess you've added "Events View Schedule" public control to your page. Namely, that control uses RadScheduler control (Rad "Prometheus" controls) which is based on ASP.NET Ajax. Therefore, you'll need to add Script Manager control to your template (or MasterPage that template is based on). Script Manager needs to be the first control after the form tag. Here is a sample Masterpage from one of our projects that contains ScriptManager:

    <%@ Master Language="C#" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <script runat="server"
     
    </script> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>Untitled Page</title> 
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />      
    </head> 
    <body> 
        <form id="form1" runat="server"
            <asp:ScriptManager ID="ScriptManager1" runat="server"
            </asp:ScriptManager> 
            <div id="wrapper"
            <div id="Header"
                <h1>My Organization</h1> 
                <div id="TopNavigation"
                    <asp:contentplaceholder id="TopMenu" runat="server"></asp:contentplaceholder>             
                </div> 
            </div> 
            <div id="Main"><asp:contentplaceholder id="Content" runat="server"></asp:contentplaceholder></div
            <div id="SideBar"><asp:contentplaceholder id="SideBarContent" runat="server"></asp:contentplaceholder></div>     
            <div id="Footer">2006-2007 &copy; MyOrganization. All rights reserved </div> 
           </div> 
       </form> 
    </body> 
    </html> 


    All the best,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    11 Mar 2008
    Link to this post
    Thanks Ivan for the reply. It corrected the error
Register for webinar
3 posts, 0 answered