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.
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
ASKER
I added that line and it did not fix the problem.
ok, then wat version of visual studio / net framework and Ajaxtoolkit are you using?
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.
.Net Framework 3.5 with SP1
AjaxControlToolkit Version 3.0.30512
I believe all are up to date.
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.
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.
does it was installed has this link show it?
http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx
http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
I`m glad i could help!
<%@ Register Assembly="AjaxControlToolk