RadComboBox with WCF in sharepoint 2010

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    2 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    Hello,

    I've been trying to make RadComboBox work in sharepoint 2010 for couple of hours but I always get the following error :  Unable to load file or assembly 'Telerik.Web.UI'

    Error occur on the following line : <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    I've followed steps described here : http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

    Here is my usercontrol from my Visual webpart

    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
        Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
        Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Control Language="VB" AutoEventWireup="true" CodeBehind="Im3BottinVueSommaireUserControl.ascx.vb"
        Inherits="Vdq.Im3.Bottin.r0.Im3BottinVueSommaireUserControl" %>
    <telerik:radcombobox runat="server" id="RadComboBox1" height="100px" enableloadondemand="true"
        showmoreresultsbox="true" enablevirtualscrolling="true" emptymessage="Type here ...">
        <webservicesettings path="http://localhost:53106/Service1.svc" method="GetData" />
    </telerik:radcombobox>

    In my web.config :

    C:\inetpub\wwwroot\wss\VirtualDirectories\SITE\web.config

    <SafeControl Assembly="Telerik.Web.UI, Version=2010.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="True" />
    <SafeControl Assembly="Telerik.Web.Design, Version=2010.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" SafeAgainstScript="True" />


    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
        <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35"/>
    </dependentAssembly>
    <dependentAssembly>
         <assemblyIdentity name="Telerik.Web.Design " publicKeyToken="121fae78165ba3d4"/>
         <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35"/>
    </dependentAssembly>
    [...]
        </assemblyBinding>


    See attached file for screenshot of both telerik dll in the GAC...

    Any idea of what's wrong ?

    Could you confirm if what i'm trying to achieve is possible ?

    Thank you !

  2. Samuel
    Samuel avatar
    2 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    Sorry I just found what I missed on this post : http://www.telerik.com/community/forums/aspnet/ajax/could-not-load-file-or-assembly-telerik-web-ui-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx

    <assemblies>
      <add assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add assembly="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="Microsoft.SharePoint.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="Microsoft.Office.Access.Server.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add assembly="Telerik.Web.UI, Version=2010.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </assemblies>

    Since manually modifying web.config on sharepoint is a PAIN i'll be looking for another workaround though...

Back to Top