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

VS 2010 Project not Compiling for version 2015.1.318.40

3 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaish
Top achievements
Rank 1
Jaish asked on 02 Apr 2015, 08:46 PM
I replaced Telerik.Web.UI and Telerik.Web.Design libraries with version 2015.1.318.40 and then project stopped compiling. Please see the attached error screenshot. Any help would be appreciated

Error 1 'Could not load file or assembly 'Telerik.Web.UI, Version=2015.1.318.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)' D:\JAISH\JQUERY - SUBMIT\WebApplication1\WebApplication1\LC WebApplication1

.The file which is throwing error is LC as per VS, but I haven't any files like that. 

3 Answers, 1 is accepted

Sort by
0
Jaish
Top achievements
Rank 1
answered on 03 Apr 2015, 07:57 PM

I was in hurry and later I fixed it by unblock the the dlls what downloaded. Now I am getting a different error. Please see the attached image. My aspx is like below.

<telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="SourceGrid" runat="server" ShowGroupPanel="false" AllowSorting="false" ShowFooter="true" AllowPaging="false" HeaderStyle-CssClass="tableHeading br" AutoGenerateColumns="false" GridLines="Both" EnableViewState="false">
            <ClientSettings>
                <DataBinding Location="Employee.asmx" SelectMethod="GetEmployees">
                </DataBinding>
                <Virtualization EnableVirtualization="true" InitiallyCachedItemsCount="2000" LoadingPanelID="RadAjaxLoadingPanel1" ItemsPerView="100" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
                <Resizing AllowColumnResize="false" EnableRealTimeResize="true" />
                <ClientEvents OnCommand="SourceGrid_Command" OnGridCreated="GridCreated" OnRowDataBound="SourceGrid_RowDataBound" />
            </ClientSettings>
            <ExportSettings>
                <Excel />
            </ExportSettings>
            <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
            <MasterTableView ShowGroupFooter="false" GridLines="Both" DataKeyNames="" GroupHeaderItemStyle-Font-Underline="true">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True">
                </ExpandCollapseColumn>
                <Columns>
                    <%--Start Station Details--%>
                    <telerik:GridBoundColumn UniqueName="EmpNumber" DataField="EmpNumber" HeaderText="EmpNumber" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="8" HeaderStyle-Font-Names="Arial" ItemStyle-Font-Size="8" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" FooterText="" Visible="true">
                        <HeaderStyle HorizontalAlign="Center" Font-Bold="True" Font-Names="Arial" Font-Size="8pt"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="8pt" Width="5%"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="Name" HeaderStyle-HorizontalAlign="Center" DataField="Name" ItemStyle-Width="5%" HeaderText="Name" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="8" HeaderStyle-Font-Names="Arial" ItemStyle-Font-Size="8" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" FooterText="">
                        <ItemTemplate>

0
Jaish
Top achievements
Rank 1
answered on 03 Apr 2015, 08:27 PM
I just noticed that once commenting the tag,  "<Virtualization EnableVirtualization="true"______", the error gone. So what could be the issue?
0
Kostadin
Telerik team
answered on 07 Apr 2015, 06:05 AM
Hi Jaish,

Note that using GridTemplateColumns,DetailItemTemplate or NestedViewTemplate is not possible in scenario where visualization is used is as binding can not be properly performed. Please remove all the TemplateColumns from the project and let me know whether the same error is thrown.
Additionally you can examine the following help article which elaborates more on the limitation of the visualization.

Regards,
Kostadin
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Jaish
Top achievements
Rank 1
Answers by
Jaish
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or