+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Telerik.Web.UI problem

Telerik.Web.UI problem

13 posts, 0 answered
  1. dimiter
    dimiter avatar
    13 posts
    Registered:
    25 Apr 2007
    03 Jul 2009
    Link to this post
    Hi

    My problem is I am developing External pages for Sitefinity I am using dll Telerik.Web.UI 2009 Q1 Build 0527.35 for my external pages, but when I uploded dll the site crashed.
    The error is
    Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.410.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    greetings
    Dimiter 
     
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Jul 2009
    Link to this post
    Hello dimiter,

    The problem is that Sitefinity uses different version of Telerik.Web.UI assemble. You use a higher version in your custom implementation. When you upload the control the site crashes because your control cannot find the reference to Telerik.Web.UI - 0527 you used to compile it.

    There are three possible options for you.

    1. Create a binding redirection in your web.config and use  Telerik.Web.UI 2009 Q1 Build 0527.35 instead of Telerik.Web.UI, Version=2009.1.410.35. You can face some problems with Sitefinity controls( NewsView, EventsView, PollBox etc) because all other assemblies we use in Sitefintiy are compiled against Telerik.Web.UI, Version=2009.1.410.35.

    2. Compile your controls using reference to Telerik.Web.UI, Version=2009.1.410.35.

    3. Add Telerik.Web.UI 2009 Q1 Build 0527.35 to GAC and create refference to your project. Multiple copies of assemblies with the same name but different version information can be maintained in the global assembly cache.

    Let us know if there is anything else that we can do for you.

    All the best,
    Ivan Dimitrov
    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. Gerard Brandon
    Gerard Brandon avatar
    2 posts
    Registered:
    05 Dec 2006
    10 Jul 2009
    Link to this post
    Hi Ivan

    I have been upgrading the Telerik.Web.UI regularly and while I have been registerd users of Sitefinity for a number of years we have not updgraded that part of the site as often enough (still on version 3.2.1500.2). However I have used the web.config binding to resolve this most of the time except that this time I encountered a problem that allows me into the dashboard and other admin pages of Sitefinity but will not allow me to access any of the pages.

    This is the error I get 

    Exception Type: System.IO.FileLoadException
    Exception Message:     Could not load file or assembly 'Telerik.Web.UI, Version=2007.3.1425.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Exception Source:      Exception Target Site: Object reference not set to an instance of an object.
    However I have in the web.config page a binding redirect that shows th following

    <bindingRedirect oldVersion="2007.3.1425.20" newVersion="2009.1.527.20" />

    But this just does not seem to resolve the problem for me this time. Thankfully I have the ability to manage and build pages manually and even add them manually into the web.config so they work but this is a time consuming exercise that I hope to resolve.

    Any ideas?

    Gerry

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Jul 2009
    Link to this post
    Hi Gerard Brandon,

    The problem could be related to assemble dependencies for which I was talking about in the previous posts. Another option is that Telerik.Web.UI 2009.1. 527 is not accessible from your bin folder.
    I suggest that you should upgrade the project to the last official release.

    Kind regards,
    Ivan Dimitrov
    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.
  5. KEG
    KEG avatar
    5 posts
    Registered:
    12 Aug 2009
    29 Jan 2010
    Link to this post
    I followed option 3 as stated in Ivan's post and now I receive this error.

    BC30560: 'RadMenu' is ambiguous in the namespace 'Telerik.Web.UI'.

    Looks like it still cannot resolve which version to load.

    What is the solution?  Is it possible that I need both versions of Telerik.Web.UI in the GAC?  If so then how do I establish a reference to both assemblies in my project?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jan 2010
    Link to this post
    Hello Keith Geringer,

    You can use bindingRedirection with probingElement . More information about working with multiple assemblies can be fond at Working with Assemblies and the Global Assembly Cache. You need to reference the version you want to use with your project working with GAC.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    08 Jun 2010
    Link to this post
    Hi Ivan -

    Regarding your most recent post, I have had a rather difficult time tracking down how this working with multiple versions of the Telerik.Web.UI assembly is supposed to work.  Is there a tutorial available that is tailored to the Telerik DLL in particular (not just a generic Microsoft how-to)?  In my case, I want to have one control use a more up-to-date version of the DLL, while I want all of the other controls I am using to continue using an older DLL (for the purpose of a time crunch and lack of a desire/ability to regression test all controls).  I understand the concept of putting both versions in to the GAC, but beyond that, I am not sure how to get to the point where individual controls are referencing particular versions of the assembly.  I have wrapped the Telerik controls in my own classes in my project, so would there be a way to have one use a particular version in that case?  Any thoughts here?

    Thanks.
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Jun 2010
    Link to this post
    Hi Connections Academy Developer,

    You can use the approach of the probingeElement. You can create a sub folder  of your bin directory and make the website looking for assemblies there too. So in the root of bin folder you will have the original Telerik.Web.UI.dll then in the sub folder you will have the newer assembly. Then you are using the RadControl in a User control you can reference version specific assemblies in the register declarations:
    <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI, Version=2010.1.xxx.xx" Namespace="Telerik.Web.UI" %>


    Regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  9. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    15 Jun 2010
    Link to this post
    Hi -

    Thanks, that clears this up a bit.  However, I am wondering a few things:

    1. Would it be possible to provide an example of how the probing might look in web.config in this case?  I am having a little bit of trouble translating the Microsoft documentation into how it might look in the case of the Telerik DLL.

    2. Would it be possible for the assemblies to reside in the GAC instead of in 2 different places in the bin?

    3. Would it be possible to target specific versions if I have the control wrapped in my own server control, as opposed to if I am using the Telerik control directly in a user control?

    Thanks.
  10. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 Jun 2010
    Link to this post
    Hello Connections Academy Developer,

    If you are going to use this approach you will not have binding redirect. The probing will be like this:
    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <probing privatePath="bin;bin\subbin"/>
          <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>

    I am afraid if the assemblies are in GAC they will override the original one in bin which the Sitefinity website is looking for.

    I am not positive that the one in point 3 will work either.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  11. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    15 Jun 2010
    Link to this post
    Thanks.  I believe I have the probing, etc. correct, however when I try the user control example I get the following error:

    System.Web.HttpParseException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.519.35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

    I created a Telerik subdirectory under the bin directory, and put the 2010.1.519.35 DLL there.  I have the 2009.2.826.35 DLL in the root of the bin directory.  I put this probing element in web.config:

    <probing privatePath="bin;bin\Telerik"/>

    Do I need to somehow have references to both versions in the project?  I can't see a way to add 2 references with the same name.

    I'll bet this has something to do with my problem: I'm not using Sitefinity, and I just realized that this was a Sitefinity-specific forum.  :)  However, do you know if this method is possible in my case (I'm just using the Telerik DLLs in a plain old web application, and I want to use different versions between different controls)?
  12. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Jun 2010
    Link to this post
    Hello Connections Academy Developer,

    Check this link out: http://geekswithblogs.net/narent/archive/2008/11/11/126940.aspx.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  13. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    21 Jun 2010
    Link to this post
    Hi -

    Thanks.  I am not so sure that this method works with web applications, particularly the "extern alias" part.  Do you know if this is possible to use with web applications?
Register for webinar
13 posts, 0 answered