OpenAccess ORM - install side by side??

6 posts, 0 answers
  1. Mathijs
    Mathijs avatar
    3 posts
    Member since:
    Mar 2011

    Posted 21 Apr 2011 Link to this post

    On my machine I have installed two versions of OpenAccess ORM Free:
    Telerik OpenAccess ORM
    08.13.2702

    Telerik OpenAccess ORM Q3 2010
    10.11.2501

    Can they run on the same machine?

    I get an error saying:
    OpenAccess Error: Version mismatch: The assembly <MyAssemblyName> references the Telerik.OpenAccess runtime 2010.3.1125.1. The Telerik.OpenAccess enhancer version is 2008.3.1327.2. Please rebuild the assembly or use theTelerik.OpenAccess enhancer version 2010.3.1125.1
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 26 Apr 2011 Link to this post

    Hi Mathijs,

     Having persistent types in one of your assemblies requires that they are enhanced during compile time by one of our tools. This tool (enhancer) is version specific and as such you can only enhance projects built against the same version as the enhancer itself. Can you please check in your project file to which version of the openaccess targets are you referring. It seems that you are referencing assemblies from our q3 2010 release but you are using the enhancer from q3 2008.

    Kind regards,
    Petar
    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
  3. DevCraft banner
  4. Mathijs
    Mathijs avatar
    3 posts
    Member since:
    Mar 2011

    Posted 26 Apr 2011 Link to this post

    Hi Petar,

    Thanks for your reply.

    Indeed the enhancer on my machine is the q3 2008. A collegue of mine did update the targets of the website to q3 2010. That's when the compilation errors started to appear.

    From your answer I understand that only 1 enhancer can be used at a time. When I installed OpenAccess q3 2010 it did not check for any previous installations. I suggest the installer of q3 2010 will ask to uninstall any installed enhancers before installing the product.

    I would like to add that I have this scenario where 2 websites are present, one of which uses the q3 2010 assemblies. The other one isn't updated yet and still uses the q3 2008 assemblies. In order to succesfully compile one of the websites, I should uninstall OpenAccess and install the other version. Once the time comes I need to work on the other website, I have to uninstall OpenAccess again and install the other version.

    I am forced to update my assemblies to the newest version, or downgrade the other website.
    Or are there any other work arounds?

  5. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 02 May 2011 Link to this post

    Hello Mathijs,

     In between we have changed our installers and maybe that is causing the false behavior. 
    You shouldn't have any problems running 2 installations of OpenAccess as long as the assemblies are not wrongly picked from the gac. If you are referencing them form local folders and you have the two targets files pointing the the two different enhancer instances you should not have any problems.

    Regards,
    Petar
    the Telerik team
    Want to use Telerik OpenAccess with SQL Azure? Download the trial version today. 
  6. Mathijs
    Mathijs avatar
    3 posts
    Member since:
    Mar 2011

    Posted 02 May 2011 Link to this post

    Thanks Peter,

    From your answer I see that I can solve this problem using the right settings.
    I will take it the easy way and upgrade all my projects to the newest version.

    Thanks for your information and help!
  7. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 04 May 2011 Link to this post

    Hello Mathijs,

     Indeed upgrading will be the better choice in your case. 
    Please do not hesitate to contact us back should you face any further problems.

    Best wishes,
    Petar
    the Telerik team
    Want to use Telerik OpenAccess with SQL Azure? Download the trial version today. 
Back to Top
DevCraft banner