Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi I am getting compilation error even after Referencing the Telerik dll into my project.
The error occurs in all controls.And I am using VS 2013 4.5 frame

What I have tried:

ASP.NET
<pre><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Telerik.aspx.cs" Inherits="Teleriksample.Telerik" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="demo-container no-bg">
        
            <table>
                <tbody class="order">
                    <tr>
                        <td>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="DropDownVehicleType"
                                Skin="Silk" TabIndex="1" Width="200" DropDownWidth="200" DefaultMessage="Select Vehicle Type..."
                                AutoPostBack="true" OnSelectedIndexChanged="DropDownVehicleType_SelectedIndexChanged"
                                DataSourceID="SqlDataSource1" DataTextField="TypeName" DataValueField="ID">
                            </telerik:RadDropDownList>
                        </td>
                        <td>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="DropDownVehicleBrand" 
                                Skin="Silk" TabIndex="1" Width="200" DropDownWidth="200"
                                DefaultMessage="Select Vehicle Brand..." AutoPostBack="true" OnSelectedIndexChanged="DropDownVehicleBrand_SelectedIndexChanged"
                                DataSourceID="SqlDataSource2" DataTextField="VehicleName" DataValueField="ID">
                            </telerik:RadDropDownList>
                        </td>
                        <td>
                           <telerik:RadGrid id="panelGrid" runat="server" DataSourceID="BundleItemsSource" Height="100%" Width="100%">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            <ClientEvents OnGridCreated="gridCreated" />
        </ClientSettings>
    </telerik:RadGrid>
                        </td>
                        <td class="buttons">
                            <telerik:RadButton RenderMode="Lightweight" ID="btnGetData" Skin="Silk" 
                                Text="Select Vehicle" OnClick="btnGetData_Click" runat="server" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <asp:PlaceHolder runat="server" ID="OrderTable" Visible="false">
                <table class="order-summary">
                    <tbody>
                        <tr>
                            <th>Vehicle Type:
                            </th>
                            <td>
                                <asp:Label ID="labelVehicleType" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>Vehicle Brand:
                            </th>
                            <td>
                                <asp:Label ID="labelVehicleBrand" runat="server" />
                            </td>
                        </tr>
                        <tr class="price-row">
                            <th>Model:
                            </th>
                            <td>
                                <asp:Label ID="labelModel" runat="server" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </asp:PlaceHolder>
      
    </div>
 
    
    </form>
</body>
</html>


Web.config

HTML
<pre><?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <pages>

      <controls>

        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />

      </controls>

    </pages>
    
  </system.web>
  <appSettings>
    
    <add key="Telerik.AsyncUpload.ConfigurationEncryptionKey" value="abcdefghijklmnopqrstuvwxyz" />
    <add key="Telerik.Upload.ConfigurationHashKey" value="123456789qwerty" />
  </appSettings>


</configuration>
Posted
Updated 7-Mar-17 18:39pm
Comments
Richard Deeming 9-Mar-17 13:18pm    
If you want us to help you diagnose and resolve an error, then you need to tell us what the error is!

Click "Improve question" and add the full text of the compilation error to your question. Remember to indicate which line of the code you've posted the error message is pointing to.
Member 12605293 10-Mar-17 1:00am    
Hi Richard
Thanks for the guidance :)

1 solution

I would suggest you post the question to Telerik Developer Forums[^] . The Telerik team might able to assist you better.

By the way, what is the error message?
 
Share this answer
 
Comments
Member 12605293 8-Mar-17 0:42am    
Thanks Bryian,
Compilation error in all the telerik controls

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900