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

Forums / Set-up & Installation / upgrade RAD controls suite

upgrade RAD controls suite

6 posts, 0 answered
  1. mexner
    mexner avatar
    98 posts
    Registered:
    06 Apr 2006
    12 Jul 2007
    Link to this post
    Hello,

    Yesterday I purchased the RAD Control suite.  I'm aware it ships with SF, but I needed them for other projects. Soon after downloading the latest build, I noticed that the versions shipped with SF are older than the versions I downloaded from telerik.

    I need to use the newer RAD controls in my user controls (they have bug fixes and enhancements I need.).

    So I over wrote the bin directory and the RadControl directory with the latest RAD control suite...and now I'm getting errors whenever I log into SF's admin area.


    Could not load file or assembly 'RadInput.Net2, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a1432cd341173140' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Is there anything I can do to fix this error?  The only way I can do it right now is to revert back to the original SF release of the RAD controls.

    Please advise...thanks,

  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    12 Jul 2007
    Link to this post
    Hi CHRIS mechsner,

    The error you get is because Sitefinity tries to load a different version of the respective assembly. There is a way to fix this with setting assembly binding redirects in the web config. Make the following changes:

    <runtime> 
       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
          <dependentAssebly> 
            <assemblyIdentity name="RadInput.Net2" publicKeyToken="a1432cd341173140">  
            </assemblyIdentity> 
            <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.2.0">  
            </bindingRedirect> 
          </dependentAssebly> 
          <probing privatePath="bin;sitefinity\admin\bin"/>  
       </assemblyBinding> 
    </runtime> 

    The oldVersion and newVersion attributes must be changed with the version numbers of the assembly in your Sitefinity installation and RadControls installation, respectively. Note that in fact what this tells to Sitefinity is to use the new assembly instead of the old one. However, if there are changes like removed properties that are requested by the Sitefinity code, you may get an error. In most situations, it would work perfectly.
    You have to do this for every assembly that you have substituted. For more information about setting assembly binding redirects you may read the following articles on MSDN:
    http://msdn2.microsoft.com/en-us/library/2fc472t2(vs.71).aspx
    http://msdn2.microsoft.com/en-us/library/eftw1fys(VS.71).aspx

    Sincerely yours,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. mexner
    mexner avatar
    98 posts
    Registered:
    06 Apr 2006
    12 Jul 2007
    Link to this post
    Slavo,

    thanks for the quick reply.  I have implemented your suggestion but continue to experience the same error.

    Here is my original web.config file..
    <runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
          <probing privatePath="bin;sitefinity\admin\bin" /> 
        </assemblyBinding>  
      </runtime> 

    And here is what I changed it to per your instructions...

      <runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
          <dependentAssebly> 
            <assemblyIdentity name="RadInput.Net2" publicKeyToken="a1432cd341173140"></assemblyIdentity> 
            <bindingRedirect oldVersion="2.0.1.0" newVersion="2.0.2.0"></bindingRedirect> 
          </dependentAssebly> 
          <probing privatePath="bin;sitefinity\admin\bin"/> 
        </assemblyBinding> 
      </runtime> 
     



    I've verified the version numbers for both old and new assembly's as well as the public key token on both assembly's using the visual studio command prompt - and the command line: NS -t

    The error I receive is the same, it appears that my changes to the web.config are not being seen.

    WHen i compile the VS project, I also get these warnings...
    ------ Build started: Project: D:\...\SiteFinity\, Configuration: Debug .NET ------
    Warning: Unable to get auto-refresh path for reference 'radinput.net2.dll'.
    Warning: Unable to get auto-refresh path for reference 'radgrid.net2.dll'.
    Warning: Unable to get auto-refresh path for reference 'radajax.net2.dll'.
    Warning: Unable to get auto-refresh path for reference 'radtabstrip.net2.dll'.
    Warning: Unable to get auto-refresh path for reference 'radeditor.net2.dll'.
    Validating Web Site
    Building directory '/SiteFinity/App_Code/'.
    Building directory '/SiteFinity/App_Master/'.
    Building directory '/SiteFinity/UserControls/'.
    Building directory '/SiteFinity/UserControls/Email_To_Friend/'.
    Building directory '/SiteFinity/UserControls/StyleSwitcher/'.
    Building directory '/SiteFinity/CustomModules/Newsletter/Admin/MailFlight/'.
    Building directory '/SiteFinity/CustomModules/Newsletter/Admin/'.
    Building directory '/SiteFinity/CustomModules/Newsletter/'.
    Building directory '/SiteFinity/RadControls/Ajax/Scripts/1_7_0/'.
    Building directory '/SiteFinity/RadControls/Ajax/Scripts/1_7_2/'.
    Building directory '/SiteFinity/RadControls/Calendar/Scripts/2_1_0/'.
    Building directory '/SiteFinity/RadControls/Calendar/Scripts/2_1_2/'.
    Building directory '/SiteFinity/RadControls/Callback/Scripts/2_1_0/'.
    Building directory '/SiteFinity/RadControls/Chart/'.
    Building directory '/SiteFinity/RadControls/Combobox/Scripts/2_7_0/'.
    Building directory '/SiteFinity/RadControls/Combobox/Scripts/2_7_2/'.
    Building directory '/SiteFinity/RadControls/Dock/Scripts/1_8_0/'.
    Building directory '/SiteFinity/RadControls/Dock/Scripts/1_8_2/'.
    Building directory '/SiteFinity/RadControls/Editor/Controls/'.
    Building directory '/SiteFinity/RadControls/Editor/Dialogs/'.
    Building directory '/SiteFinity/RadControls/Editor/Localization/de-DE/'.
    Building directory '/SiteFinity/RadControls/Editor/Localization/en-US/'.
    Building directory '/SiteFinity/RadControls/Editor/Localization/fr-FR/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_0/Controls/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_0/Docking/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_0/Modules/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_0/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_2/Controls/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_2/Docking/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_2/Modules/'.
    Building directory '/SiteFinity/RadControls/Editor/Scripts/7_1_2/'.
    Building directory '/SiteFinity/RadControls/Editor/Xhtml/'.
    Building directory '/SiteFinity/RadControls/Editor/'.
    Building directory '/SiteFinity/RadControls/Grid/Scripts/4_6_0/'.
    Building directory '/SiteFinity/RadControls/Grid/Scripts/4_6_2/'.
    Building directory '/SiteFinity/RadControls/Input/Scripts/2_0_0/'.
    Building directory '/SiteFinity/RadControls/Input/Scripts/2_0_2/'.
    Building directory '/SiteFinity/RadControls/Menu/Scripts/4_3_0/'.
    Building directory '/SiteFinity/RadControls/Menu/Scripts/4_3_2/'.
    Building directory '/SiteFinity/RadControls/Panelbar/Scripts/4_2_0/'.
    Building directory '/SiteFinity/RadControls/Panelbar/Scripts/4_2_2/'.
    Building directory '/SiteFinity/RadControls/Rotator/Scripts/2_6_0/'.
    Building directory '/SiteFinity/RadControls/Rotator/Scripts/2_6_2/'.
    Building directory '/SiteFinity/RadControls/Spell/Scripts/3_1_0/'.
    Building directory '/SiteFinity/RadControls/Spell/Scripts/3_1_2/'.
    Building directory '/SiteFinity/RadControls/Spell/'.
    Building directory '/SiteFinity/RadControls/Splitter/Scripts/1_2_0/'.
    Building directory '/SiteFinity/RadControls/Splitter/Scripts/1_2_2/'.
    Building directory '/SiteFinity/RadControls/Tabstrip/Scripts/3_5_0/'.
    Building directory '/SiteFinity/RadControls/Tabstrip/Scripts/3_5_2/'.
    Building directory '/SiteFinity/RadControls/Toolbar/Scripts/1_5_0/'.
    Building directory '/SiteFinity/RadControls/Toolbar/Scripts/1_5_2/'.
    Building directory '/SiteFinity/RadControls/Treeview/Scripts/6_2_0/'.
    Building directory '/SiteFinity/RadControls/Treeview/Scripts/6_2_2/'.
    Building directory '/SiteFinity/RadControls/Upload/Scripts/2_3_0/'.
    Building directory '/SiteFinity/RadControls/Upload/Scripts/2_3_2/'.
    Building directory '/SiteFinity/RadControls/Window/Scripts/1_8_0/'.
    Building directory '/SiteFinity/RadControls/Window/Scripts/1_8_2/'.
    Building directory '/SiteFinity/Sitefinity/Admin/CmsAdmin/App_LocalResources/'.
    Building directory '/SiteFinity/Sitefinity/Admin/CmsAdmin/'.
    Building directory '/SiteFinity/Sitefinity/Admin/App_LocalResources/'.
    Building directory '/SiteFinity/Sitefinity/Admin/'.
    Building directory '/SiteFinity/Sitefinity/Admin/ControlTemplates/Blogs/App_LocalResources/'.
    Building directory '/SiteFinity/Sitefinity/Admin/ControlTemplates/Blogs/'.
    D:\IIS\Clients\LFI\SiteFinity\Sitefinity\Admin\ControlTemplates\Blogs\ControlPanelEdit.ascx(144): Build (web): Could not load file or assembly 'RadInput.Net2, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a1432cd341173140' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    D:\IIS\Clients\LFI\SiteFinity\Sitefinity\Admin\ControlTemplates\Blogs\ControlPanelInsert.ascx(50): Build (web): Could not load file or assembly 'RadInput.Net2, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a1432cd341173140' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    D:\IIS\Clients\LFI\SiteFinity\Sitefinity\Admin\ControlTemplates\Blogs\NewContentDialog.ascx(51): Build (web): Could not load file or assembly 'RadInput.Net2, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a1432cd341173140' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    D:\IIS\Clients\LFI\SiteFinity\Sitefinity\Admin\ControlTemplates\Blogs\NewContentDialog.ascx(55): Build (web): Could not load file or assembly 'RadInput.Net2, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a1432cd341173140' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    Validation Complete
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

  4. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    13 Jul 2007
    Link to this post
    Hi Chris,

    It is strange that you get the error even after editing the web.config and I cannot reproduce it. Here is what I did:

    1. Create the project.
    2. Copy all assemblies from RadControls to the project bin folder. Copy the RadControls folder.
    3. Open the project for editing with Sitefinity.
    4. When I encountered an assembly error, I noted the name of the assembly, the version and the publicKeyToken.
    5. Open web.config and make the changes for the respective assembly:

    <dependentAssembly> 
       <assemblyIdentity name="RadTabStrip.Net2" publicKeyToken="xxxx" /> 
       <bindingRedirect oldVersion="3.5.1.0" newVersion="3.5.2.0" /> 
    </dependentAssembly> 

    6. Substitute the name of the assembly, the publicKeyToken and oldVersion with the ones in the error message.
    7. Find the version of the new assembly I have copied and substitute the newVersion attribute.
    8. Save web.config and refresh the application.

    With these changes everything should work fine, however, you will need to do this for every assembly you get the error. To be sure, add entries for web.config for all RadControls assemblies. Test this by creating a new project from scratch and following the above steps in order. If it still doesn't work, open a support ticket and attach your project so that we can investigate the issue locally.

    Kind regards,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Nick
    Nick avatar
    10 posts
    Registered:
    09 Jun 2008
    19 May 2011
    Link to this post
    Check your spelling. You have dependentAssebly not dependentAssembly (you missed the m)
  6. mexner
    mexner avatar
    98 posts
    Registered:
    06 Apr 2006
    20 May 2011
    Link to this post
    Thanks Nick. You replied to a post that was 4 years old! I have moved on ;)

    Thanks though!
Register for webinar
6 posts, 0 answered