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

Unkown Server Tag

6 Answers 73 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 22 Jul 2009, 03:11 PM
I have a project that was developed somewhere else that I am trying to set up for development. I copied the entire source and am getting this error.

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'telerik:RadPanelBar'.

Source Error:

Line 2:      Inherits="WebControls_UserLeftMenu" %>
Line 3:  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Line 4:  <telerik:RadPanelBar   Width="169px" ID="RadPanelBar1" runat="server" ExpandMode="SingleExpandedItem"
Line 5:      Skin="Web20"  >
Line 6:      <Items>
it says it is an unknown server tag but as you can see it is registered right before the tag. Does anyone know what the problem is. Here is the ascx page the error is in. Line 4

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="UserLeftMenu.ascx.vb" 
    Inherits="WebControls_UserLeftMenu" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<telerik:RadPanelBar   Width="169px" ID="RadPanelBar1" runat="server" ExpandMode="SingleExpandedItem" 
    Skin="Web20"  > 
    <Items> 
        <telerik:RadPanelItem runat="server"  Text="BMI Information" PostBack="false" Expanded="true"  CssClass="leftmenucss"      > 
            <Items> 
                <telerik:RadPanelItem  runat="server"    Value="districts" Text=" " ImageUrl="~/App_Themes/Default/Images/Districts.jpg" 
                    SelectedImageUrl="~/App_Themes/Default/Images/Districts.jpg"
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Value="schools"  Text=" "  ImageUrl="~/App_Themes/Default/Images/Schools.jpg"
                     
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Value="classses" Text=" "  ImageUrl="~/App_Themes/Default/Images/Classes.jpg"
                     
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Value="students" Text=" "   ImageUrl="~/App_Themes/Default/Images/Students.jpg"
                     
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem runat="server" Text="Reporting"  PostBack="false" CssClass="leftmenucss" > 
            <Items> 
                <telerik:RadPanelItem runat="server" Value="reporting" Text=" "    ImageUrl="~/App_Themes/Default/Images/Reports.jpg"
                     
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem runat="server" Text="Administration" Value="administration"   PostBack="false" CssClass="leftmenucss" > 
            <Items> 
                <telerik:RadPanelItem runat="server" Value="users" Text=" "    ImageUrl="~/App_Themes/Default/Images/Users.jpg"
                     
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 
 


And here is the web.config file
<?xml version="1.0"?> 
<!--  
    Note: As an alternative to hand editing this file you can use the  
    web admin tool to configure settings for your application. Use 
    the Website->Asp.Net Configuration option in Visual Studio. 
    A full list of settings and comments can be found in  
    machine.config.comments usually located in  
    \Windows\Microsoft.Net\Framework\v2.x\Config  
--> 
<configuration> 
  <configSections> 
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> 
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        </sectionGroup> 
      </sectionGroup> 
    </sectionGroup> 
  </configSections> 
  <appSettings /> 
  <connectionStrings> 
    <add name="DBConnection" connectionString="server=serverInfo;" providerName="System.Data.SqlClient" /> 
  </connectionStrings> 
   
  <system.web> 
    <!--  
            Set compilation debug="true" to insert debugging  
            symbols into the compiled page. Because this  
            affects performance, set this value to true only  
            during development. 
        --> 
    <membership defaultProvider="SqlMembershipProvider"
      <providers> 
        <clear/> 
        <add name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
             connectionStringName="DBConnection" applicationName="/BMI" 
             minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" /> 
      </providers> 
    </membership> 
    <roleManager enabled="true"
      <providers> 
        <clear/> 
        <add name="AspNetSqlRoleProvider" connectionStringName="DBConnection" applicationName="/BMI" type="System.Web.Security.SqlRoleProvider" /> 
      </providers> 
    </roleManager> 
    <compilation debug="true"
      <assemblies> 
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
      </assemblies> 
    </compilation> 
    <!-- 
            The <authentication> section enables configuration  
            of the security authentication mode used by  
            ASP.NET to identify an incoming user.  
        --> 
    <authentication mode="Forms"
      <forms name=".BMI" loginUrl="Login.aspx" cookieless="UseCookies" /> 
    </authentication> 
    <authorization> 
      <deny users="?" /> 
    </authorization> 
    <!-- 
            The <customErrors> section enables configuration  
            of what to do if/when an unhandled error occurs  
            during the execution of a request. Specifically,  
            it enables developers to configure html error pages  
            to be displayed in place of a error stack trace. 
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"
            <error statusCode="403" redirect="NoAccess.htm" /> 
            <error statusCode="404" redirect="FileNotFound.htm" /> 
        </customErrors> 
        --> 
    <pages> 
      <controls> 
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      </controls> 
    </pages> 
    <httpHandlers> 
      <remove verb="*" path="*.asmx" /> 
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
    </httpHandlers> 
    <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </httpModules> 
     
  </system.web> 
  <system.codedom> 
    <compilers> 
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="OptionInfer" value="true" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
    </compilers> 
  </system.codedom> 
  <!--  
        The system.webServer section is required for running ASP.NET AJAX under Internet 
        Information Services 7.0.  It is not necessary for previous version of IIS. 
    --> 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
      <remove name="ScriptModule" /> 
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
    </handlers> 
  </system.webServer> 
  <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
    </assemblyBinding> 
  </runtime> 
  <location path="Index.aspx"
    <system.web> 
      <authorization> 
        <allow users="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="Forgotpassword.aspx"
    <system.web> 
      <authorization> 
        <allow users="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="User.aspx"
    <system.web> 
      <authorization> 
        <allow users="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="class.aspx"
    <system.web> 
      <authorization> 
        <allow users="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="App_Themes"
    <system.web> 
      <authorization> 
        <allow users="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <system.net> 
    <mailSettings> 
      <smtp from="noreply@semaphore-software.com"
        <network host="networkInfo" /> 
      </smtp> 
    </mailSettings> 
  </system.net> 
</configuration> 



6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Jul 2009, 12:10 PM
Hi Web Services,

This error will occur if there is no Telerik.Web.UI.dll in the bin folder of your web site. Please check if this is the case

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Web Services
Top achievements
Rank 2
answered on 24 Jul 2009, 12:50 PM
The dll was there, that was my first thought too. I just re-installed the files and ran it and it worked. Don't ask me why.
0
Prerak
Top achievements
Rank 1
answered on 29 Jul 2009, 12:15 PM
HI,

I have also same problem.

I have telerik.web.ui of version 2007.3.1425.20 in bin folder.

but still it is giving error of unknown server tag for radpanel bar and EditorDropDown


Please help me out.

Thanx in advance




0
Web Services
Top achievements
Rank 2
answered on 29 Jul 2009, 01:33 PM
Did you read my previous post. It had something to do with the project already existing. I just created a new project and moved all of the files over and then drug a rad panel and let it add everything to the web.config and registered it and it worked fine.
0
Prerak
Top achievements
Rank 1
answered on 30 Jul 2009, 05:12 AM
Ya,

But i have website not a project.

SO i have placed dll in bin folder.

and registered a control.
0
Web Services
Top achievements
Rank 2
answered on 30 Jul 2009, 01:56 PM
First you should always use web projects not websites. The two biggest reasons are in a production environment a web project that is built is much faster. Second you will have some issues using the aspnet built in profile features for users who login to your site. Anyways just create a blank project and in the default.aspx page drag in a few rad controls and make sure they are registered. Then, copy over all of your files that are in your other project folders. Add any extras you had in your web.config to the new one but don't overwrite the web.config. I have actually had this problem a couple of times, it comes up whenever I move a project from one computer to another. This is the only way I have found around it so far.
Tags
PanelBar
Asked by
Web Services
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Web Services
Top achievements
Rank 2
Prerak
Top achievements
Rank 1
Share this question
or