TELERIK:网站或web.config文件中的编译错误 [英] TELERIK : compilation error in the website or the web.config file

查看:76
本文介绍了TELERIK:网站或web.config文件中的编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


即使在将Telerik dll引用到我的项目中后,我也遇到了编译错误。

所有控件都出现错误。我正在使用VS 2013 4.5框架



我尝试过:



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:

<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





Web.config

<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>

推荐答案

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?
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?


这篇关于TELERIK:网站或web.config文件中的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆