Avatar of AusBoyz
AusBoyz
 asked on

How do I fix Visual Studio 2008 error: "Generation of designer file failed: Unknown server tag 'cc1:CalendarExtender'

After adding a calendar extender to my webpage, the designer file fails to update for any other controls I add to the page, like a button. Because of this generation failure with the designer file, I can not continue to develop further on the site.

If I remove all instances of any extender from the .aspx file then the designer file will work fine again.
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Member.Master" CodeBehind="WebForm1.aspx.vb" Inherits="NorthAmerica.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MemberContentPlaceHolder" runat="server">
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
        Enabled="True" TargetControlID="TextBox1">
    </cc1:CalendarExtender>
    <asp:Button ID="Button1" runat="server" Text="Button" />
</asp:Content>
 
 
 
Public Partial Class WebForm1
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    End Sub
 
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
 
    End Sub
End Class

Open in new window

.NET ProgrammingASP.NETAJAX

Avatar of undefined
Last Comment
David Robitaille

8/22/2022 - Mon
David Robitaille

add this at the top of the page, just before the <asp:Content ...

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
AusBoyz

ASKER
I added that line and it did not fix the problem.
David Robitaille

ok, then wat version of visual studio / net framework and Ajaxtoolkit are you using?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
AusBoyz

ASKER
Visual Studio Version 9.0.30729.1 SP
.Net Framework 3.5 with SP1
AjaxControlToolkit Version 3.0.30512
 
I believe all are up to date.
 
 
David Robitaille

ok then the "register assembly" line should have done the job...
Did you use the ajaxtoolkit before in another project?
Do you add the toolkit in the references of the website?
you could also try to put the AjaxControlToolkit.dll  in the bin folder of the website.
David Robitaille

does it was installed has this link show it?
http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AusBoyz

ASKER
I created a new website and tested it by adding a calendar extender to a textbox control, and no failure of the designer file occurred.

I have also reinstalled the toolkit today by following that exact page you linked.

Could it have something to do with the master pages I have?
ASKER CERTIFIED SOLUTION
David Robitaille

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AusBoyz

ASKER
Well it seems I did yet another reinstall (3rd one today), and it seems to be working.

Though I did do something a little different this time. This time I did not place the ajaxcontroltoolkit.dll in the Bin folder. I only added the control to the toolbar, then added an extender to the page which then automatically added the ajaxcontroltoolkit.dll to the Bin folder.

Thanks for your help davrob with making me focus on the (re)installation.
David Robitaille

I`m glad i could help!
Your help has saved me hundreds of hours of internet surfing.
fblack61