This is a migrated thread and some comments may be shown as answers.

Error Creating Control - ... Unknown server tag

3 Answers 537 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 30 Jul 2008, 09:33 PM

  We are using RadControls for ASP.NET 2.X, Q3 2007

  A developer is getting this message when opeing any aspx in VS with RadControls:
Error Creating Control - RadMenu1 Unknown server tag

  This is occurring for all pages with RadControls. I am not getting this error message.  What could be causing this?

  Thanks for your help.

  Here is one aspx page giving the error (although all other pages do as well):

<%

@ Master Language="C#" AutoEventWireup="true" CodeBehind="Navigation1.Master.cs" Inherits="EAI_Dashboard.Navigation1" %>

<%

@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<!--%@ register tagname="header" tagprefix="uch" src="header.ascx" originalAttribute="src" originalPath="header.ascx" originalAttribute="src" originalPath="header.ascx" %-->

<!--%@ register tagname="footer" tagprefix="ucf" src="footer.ascx" originalAttribute="src" originalPath="footer.ascx" originalAttribute="src" originalPath="footer.ascx" %-->

<!--%@ register tagname="navbar" tagprefix="ucn" src="navbar.ascx" originalAttribute="src" originalPath="navbar.ascx" originalAttribute="src" originalPath="navbar.ascx" %-->

<%

@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml" >

<head>

<title><asp:contentplaceholder id="_titleContent2" runat="server">Main page</asp:contentplaceholder></title>

<link type="text/css" rel="stylesheet" />

</head>

<body leftmargin="10" rightmargin="10" topmargin="10" bottommargin="10">

<form id="Form2" runat="server">

<rad:RadMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick" Width="100%">

<Items>

<rad:RadMenuItem runat="server" NavigateUrl="~/Default.aspx" Text="Home">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/EventDashboard.aspx" Text="Dashboard">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/MapData.aspx" Text="Data Mapping">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/ReportControl.aspx" Text="Report Control">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/Admin.aspx" Text="Administration">

<Items>

<rad:RadMenuItem runat="server" NavigateUrl="~/AdminUserSecurity.aspx" Text="User Security">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/AdminMapData.aspx" Text="Data Map Definition">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/AdminGroupSubgroup.aspx" Text="Group/SubGroup">

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" NavigateUrl="~/AdminStatus.aspx" Text="Status Setup">

</rad:RadMenuItem>

</Items>

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" Text="Tools" Visible="False">

<Items>

<rad:RadMenuItem runat="server" Text="Export to Excel" >

</rad:RadMenuItem>

<rad:RadMenuItem runat="server" Text="Filter On/Off">

</rad:RadMenuItem>

</Items>

</rad:RadMenuItem>

</Items>

</rad:RadMenu>

<table border="0" height="75%" width="100%" cellpadding="1" cellspacing="0">

<tr>

<td valign="top" class="content">

<asp:contentplaceholder runat="server" id="_mainContent2" />

</td>

</tr>

</table>

</form>

</body>

</

html>

3 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 31 Jul 2008, 12:14 AM
Darren-

Sorry to hear you're having trouble. Let's see if we can solve this. Can you tell me if the page still runs in the browser? Sometimes VS' assembly cache gets out of whack and it gives errors that aren't "real." If the page still functions correctly (despite the VS errors), the fix is probably a simple matter of clearing your ASP.NET Temporary Files and making sure the Telerik.Web.UI assembly is properly referenced in your web app.

If you get an error when you run the page, there may be a problem with your referenced assembly or your web.config. Make sure the correct Telerik.Web.UI.dll is in your developer's Bin directory and make any references to the Telerik.Web.UI assembly in the web.config are configured for the correct version.

Let's start there and see what happens.

-Todd
0
Darren
Top achievements
Rank 1
answered on 06 Aug 2008, 12:03 AM

  This seems to be unrelated to RadControls because the developer had other issues and had to reformat the hard drive.  After that RadControls are working fine.  

  Thanks for your help.
0
Todd Anglin
Top achievements
Rank 2
answered on 06 Aug 2008, 04:41 AM
Darren-

Happy to hear everything works now! VS can be a huge time saver and a huge time waster when problems like this pop-up. Hope you have smooth(er) development from here out.

-Todd
Tags
General Discussions
Asked by
Darren
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Darren
Top achievements
Rank 1
Share this question
or