Unkown Server Tag

7 posts, 0 answers
  1. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 22 Jul 2009 Link to this post

    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

    1 <%@ Control Language="VB" AutoEventWireup="false" CodeFile="UserLeftMenu.ascx.vb" 
    2     Inherits="WebControls_UserLeftMenu" %> 
    3 <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    4 <telerik:RadPanelBar   Width="169px" ID="RadPanelBar1" runat="server" ExpandMode="SingleExpandedItem" 
    5     Skin="Web20"  > 
    6     <Items> 
    7         <telerik:RadPanelItem runat="server"  Text="BMI Information" PostBack="false" Expanded="true"  CssClass="leftmenucss"      > 
    8             <Items> 
    9                 <telerik:RadPanelItem  runat="server"    Value="districts" Text=" " ImageUrl="~/App_Themes/Default/Images/Districts.jpg" 
    10                     SelectedImageUrl="~/App_Themes/Default/Images/Districts.jpg"
    11                 </telerik:RadPanelItem> 
    12                 <telerik:RadPanelItem runat="server" Value="schools"  Text=" "  ImageUrl="~/App_Themes/Default/Images/Schools.jpg"
    13                      
    14                 </telerik:RadPanelItem> 
    15                 <telerik:RadPanelItem runat="server" Value="classses" Text=" "  ImageUrl="~/App_Themes/Default/Images/Classes.jpg"
    16                      
    17                 </telerik:RadPanelItem> 
    18                 <telerik:RadPanelItem runat="server" Value="students" Text=" "   ImageUrl="~/App_Themes/Default/Images/Students.jpg"
    19                      
    20                 </telerik:RadPanelItem> 
    21             </Items> 
    22         </telerik:RadPanelItem> 
    23         <telerik:RadPanelItem runat="server" Text="Reporting"  PostBack="false" CssClass="leftmenucss" > 
    24             <Items> 
    25                 <telerik:RadPanelItem runat="server" Value="reporting" Text=" "    ImageUrl="~/App_Themes/Default/Images/Reports.jpg"
    26                      
    27                 </telerik:RadPanelItem> 
    28             </Items> 
    29         </telerik:RadPanelItem> 
    30         <telerik:RadPanelItem runat="server" Text="Administration" Value="administration"   PostBack="false" CssClass="leftmenucss" > 
    31             <Items> 
    32                 <telerik:RadPanelItem runat="server" Value="users" Text=" "    ImageUrl="~/App_Themes/Default/Images/Users.jpg"
    33                      
    34                 </telerik:RadPanelItem> 
    35             </Items> 
    36         </telerik:RadPanelItem> 
    37     </Items> 
    38 </telerik:RadPanelBar> 
    39  


    And here is the web.config file
    1 <?xml version="1.0"?> 
    2 <!--  
    3     Note: As an alternative to hand editing this file you can use the  
    4     web admin tool to configure settings for your application. Use 
    5     the Website->Asp.Net Configuration option in Visual Studio. 
    6     A full list of settings and comments can be found in  
    7     machine.config.comments usually located in  
    8     \Windows\Microsoft.Net\Framework\v2.x\Config  
    9 --> 
    10 <configuration> 
    11   <configSections> 
    12     <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    13       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    14         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
    15         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    16           <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> 
    17           <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
    18           <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
    19           <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
    20         </sectionGroup> 
    21       </sectionGroup> 
    22     </sectionGroup> 
    23   </configSections> 
    24   <appSettings /> 
    25   <connectionStrings> 
    26     <add name="DBConnection" connectionString="server=serverInfo;" providerName="System.Data.SqlClient" /> 
    27   </connectionStrings> 
    28    
    29   <system.web> 
    30     <!--  
    31             Set compilation debug="true" to insert debugging  
    32             symbols into the compiled page. Because this  
    33             affects performance, set this value to true only  
    34             during development. 
    35         --> 
    36     <membership defaultProvider="SqlMembershipProvider"
    37       <providers> 
    38         <clear/> 
    39         <add name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
    40              connectionStringName="DBConnection" applicationName="/BMI" 
    41              minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" /> 
    42       </providers> 
    43     </membership> 
    44     <roleManager enabled="true"
    45       <providers> 
    46         <clear/> 
    47         <add name="AspNetSqlRoleProvider" connectionStringName="DBConnection" applicationName="/BMI" type="System.Web.Security.SqlRoleProvider" /> 
    48       </providers> 
    49     </roleManager> 
    50     <compilation debug="true"
    51       <assemblies> 
    52         <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
    53         <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    54         <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
    55         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
    56       </assemblies> 
    57     </compilation> 
    58     <!-- 
    59             The <authentication> section enables configuration  
    60             of the security authentication mode used by  
    61             ASP.NET to identify an incoming user.  
    62         --> 
    63     <authentication mode="Forms"
    64       <forms name=".BMI" loginUrl="Login.aspx" cookieless="UseCookies" /> 
    65     </authentication> 
    66     <authorization> 
    67       <deny users="?" /> 
    68     </authorization> 
    69     <!-- 
    70             The <customErrors> section enables configuration  
    71             of what to do if/when an unhandled error occurs  
    72             during the execution of a request. Specifically,  
    73             it enables developers to configure html error pages  
    74             to be displayed in place of a error stack trace. 
    75  
    76         <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"
    77             <error statusCode="403" redirect="NoAccess.htm" /> 
    78             <error statusCode="404" redirect="FileNotFound.htm" /> 
    79         </customErrors> 
    80         --> 
    81     <pages> 
    82       <controls> 
    83         <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    84         <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    85       </controls> 
    86     </pages> 
    87     <httpHandlers> 
    88       <remove verb="*" path="*.asmx" /> 
    89       <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    90       <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" /> 
    91       <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" /> 
    92       <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
    93     </httpHandlers> 
    94     <httpModules> 
    95       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    96     </httpModules> 
    97      
    98   </system.web> 
    99   <system.codedom> 
    100     <compilers> 
    101       <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    102         <providerOption name="CompilerVersion" value="v3.5" /> 
    103         <providerOption name="WarnAsError" value="false" /> 
    104       </compiler> 
    105       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    106         <providerOption name="CompilerVersion" value="v3.5" /> 
    107         <providerOption name="OptionInfer" value="true" /> 
    108         <providerOption name="WarnAsError" value="false" /> 
    109       </compiler> 
    110     </compilers> 
    111   </system.codedom> 
    112   <!--  
    113         The system.webServer section is required for running ASP.NET AJAX under Internet 
    114         Information Services 7.0.  It is not necessary for previous version of IIS. 
    115     --> 
    116   <system.webServer> 
    117     <validation validateIntegratedModeConfiguration="false" /> 
    118     <modules> 
    119       <remove name="ScriptModule" /> 
    120       <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    121     </modules> 
    122     <handlers> 
    123       <remove name="WebServiceHandlerFactory-Integrated" /> 
    124       <remove name="ScriptHandlerFactory" /> 
    125       <remove name="ScriptHandlerFactoryAppServices" /> 
    126       <remove name="ScriptResource" /> 
    127       <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" /> 
    128       <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" /> 
    129       <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" /> 
    130       <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
    131     </handlers> 
    132   </system.webServer> 
    133   <runtime> 
    134     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
    135       <dependentAssembly> 
    136         <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> 
    137         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
    138       </dependentAssembly> 
    139       <dependentAssembly> 
    140         <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> 
    141         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
    142       </dependentAssembly> 
    143     </assemblyBinding> 
    144   </runtime> 
    145   <location path="Index.aspx"
    146     <system.web> 
    147       <authorization> 
    148         <allow users="*" /> 
    149       </authorization> 
    150     </system.web> 
    151   </location> 
    152   <location path="Forgotpassword.aspx"
    153     <system.web> 
    154       <authorization> 
    155         <allow users="*" /> 
    156       </authorization> 
    157     </system.web> 
    158   </location> 
    159   <location path="User.aspx"
    160     <system.web> 
    161       <authorization> 
    162         <allow users="*" /> 
    163       </authorization> 
    164     </system.web> 
    165   </location> 
    166   <location path="class.aspx"
    167     <system.web> 
    168       <authorization> 
    169         <allow users="*" /> 
    170       </authorization> 
    171     </system.web> 
    172   </location> 
    173   <location path="App_Themes"
    174     <system.web> 
    175       <authorization> 
    176         <allow users="*" /> 
    177       </authorization> 
    178     </system.web> 
    179   </location> 
    180   <system.net> 
    181     <mailSettings> 
    182       <smtp from="noreply@semaphore-software.com"
    183         <network host="networkInfo" /> 
    184       </smtp> 
    185     </mailSettings> 
    186   </system.net> 
    187 </configuration> 



  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 24 Jul 2009 Link to this post

    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.
  5. Prerak
    Prerak avatar
    4 posts
    Member since:
    Feb 2008

    Posted 29 Jul 2009 Link to this post

    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




  6. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 29 Jul 2009 Link to this post

    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.
  7. Prerak
    Prerak avatar
    4 posts
    Member since:
    Feb 2008

    Posted 30 Jul 2009 Link to this post

    Ya,

    But i have website not a project.

    SO i have placed dll in bin folder.

    and registered a control.
  8. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 30 Jul 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017