OpenAccess.35.Extensions old version reference error

2 posts, 0 answers
  1. João
    João avatar
    1 posts
    Member since:
    Apr 2015

    Posted 04 Nov 2015 Link to this post

    Hello,

    I'm trying to update Telerik.OpenAccess dll's but I'm having an error when I build the solution.

    ----------------------------- 

    Error 6 Could not load file or assembly 'Telerik.OpenAccess.35.Extensions, Version=2012.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
    ExceptionString:
    System.IO.FileLoadException: Could not load file or assembly 'Telerik.OpenAccess.35.Extensions, Version=2012.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
    File name: 'Telerik.OpenAccess.35.Extensions, Version=2012.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' ---> System.Exception: The referenced assembly 'C:\FFM_GIT\sources\ET\lib\Telerik_OpenAccessORM\Telerik.OpenAccess.35.Extensions.dll' has the wrong version; expected Version=2012.3.1209.1 but found Version=2015.1.225.1.
       at Telerik.OpenAccess.SPI.AssemblyProvider.LoadFromReferences(String assemblyName)
       at Telerik.OpenAccess.SPI.AssemblyProvider.RefResolveEventHandler(Object sender, ResolveEventArgs args)
       at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
       at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.Type.GetType(String typeName)
       at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
       at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()

    ------------------------------------- 

    I just replaced /Telerik_OpenAccessORM folder dll's from version 2012.3.1209.1 to version 2015.1.255.1.

    After trying to update telerik.openaccess references version on .csprojs with no success, I tried to changed .config file to 

    "redirect binding" to new versions of Telerik.OpenAccess.dll, Telerik.OpenAccess.Runtime.dll and Telerik.OpenAccess.35.Extensions.dll like the example:

       

    <runtime>
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
       <assemblyIdentity name="Telerik.OpenAccess.35.Extensions"
          publicKeyToken="7ce17eeaf1d59342"        
          culture="neutral"/>
       <bindingRedirect oldVersion="2008.0.0.0-2015.1.225.1"
                              newVersion="2015.1.225.1"/>
       </dependentAssembly>
      </assemblyBinding>
     </runtime>

    What am I missing?

    Thanks in advance

  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 09 Nov 2015 Link to this post

    Hi João,

    The error you experience happens when Enhancer, which came with the 2012.3.1209.1 version of Telerik Data Access resolves the Telerik.OpenAccess.35.Extensions assembly with the 2015.1.225.1 version (by design each version of Enhance is bound to the corresponding version of the Data Access assemblies). 

    Since you mention a Telerik_OpenAccessORM folder, I assume that your application is configured as described in this documentation article. If this is the case, you need to update the Enhancer tool as well, in addition to the assemblies. With version 2015.1.225.1, the tool will be available in one of the following locations (depending on the architecture of your machine - x86 or x64):
    C:\Program Files\Telerik\Data Access\sdk
    or
    C:\Program Files (x86)\Telerik\Data Access\sdk


    I hope this helps. Let me know if my assumption is not correct or if you need further information.

    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. DevCraft banner
Back to Top