Here is what I'm saying.
We have an application working properly in VS2005 and NET Framework 2.0
I installed NET Framework 3.5 and VS 2008 (made a copy of my application first) and then run it. On a page that worked previously I'm now getting this error:
Server Error in '/FCAdmin' Application.
The control with ID 'CalendarExtender1' 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 'CalendarExtender1'
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 'CalendarExtender1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.] System.Web.UI.ExtenderControl.get_ScriptManager() +198 System.Web.UI.ExtenderControl.RegisterWithScriptManager() +151 System.Web.UI.ExtenderControl.OnPreRender(EventArgs e) +17 AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) in d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:391 System.Web.UI.Control.PreRenderRecursiveInternal() +86 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041 |
The page is quite complex, has several user controls, GridView and several FormViews. Initially page loads and I noticed that grid sorting, for example, is done much faster and without re-loading the whole page (no UpdatePanels on this page).
The page begins with :
<%@ Page Language="C#" AutoEventWireup="false" MaintainScrollPositionOnPostback="true"
MasterPageFile="~/admin.master" CodeFile="Registration.aspx.cs" Trace="false" EnableEventValidation="false"
Title="FC Admin - Registration" Theme="Profesional" Inherits="Registration_Form" %>
<%@ Register src="../../UCD/Tags.ascx" TagName="Tags" TagPrefix="uc5" %>
<%@ Register src="../../UCD/AtHomeManMatch.ascx" TagName="AtHomeManMatch" TagPrefix="uc4" %>
<%@ Register src="../../UCD/FriendsAvailbility.ascx" TagName="FriendsAvailbility"
TagPrefix="uc3" %>
<%@ Register src="../../UCD/VFriendsAtHAvailbility.ascx" TagName="VFriendsAtHAvailbility"
TagPrefix="uc2" %>
<%@ Register Assembly="SqlWhereBuilder" Namespace="UNLV.IAP.WebControls" TagPrefix="cc2" %>
<%@ Register src="../UCD/DateCombo.ascx" TagName="DateCombo" TagPrefix="uc1" %>
<%@ Register TagPrefix="Custom" Assembly="AutoSuggestBox" Namespace="ASB" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="Registrtration" runat="server">
<asp:ScriptManager EnablePageMethods="true" ID="scriptManager"
EnablePartialRendering="true" runat="server"
LoadScriptsBeforeUI="false"></asp:ScriptManager>
<div>
<table>
<tr>
<td valign="top" align="center" style="width: 696px;padding-top:15px;">
<div style="text-align: left;">
<asp:TextBox ID="search" Width="150px" OnPreRender="SearchPrerender" runat="server" /> <asp:Button ID="search_go" BorderWidth="2" BorderStyle="Groove" Text="GO" OnClick="DoSearch" runat="server" EnableViewState="False" CausesValidation="False" />
<span style="margin-left:125px">
<asp:ImageButton ImageUrl="../../images/id_card_view.png" ID="show_all" OnClick="RefreshMainGrid" runat="server" EnableViewState="False" CausesValidation="False" CssClass="peopleVNavIcon" AlternateText="Show All Records" ToolTip="Show All Records" />
<%--<a href="CreatePerson.aspx"><img alt="AddPerson" class="peopleVNavIcon" title="Add a New Person" src="../../images/id_card_new.gif" /></a>
--%>
<img src="" id="imgRecycle" alt="Recycle" runat="server" enableviewstate="false" title="Go to Recycling Bin" visible="false" class="peopleVNavIcon" />
</span>
<% if (clseditmode.editmode != true){ %>
What can we do to fix the problem? I do wish to use the new Framework and VS2008.