This is a migrated thread and some comments may be shown as answers.

OpenAccess ORM - install side by side??

5 Answers 114 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mathijs
Top achievements
Rank 1
Mathijs asked on 21 Apr 2011, 05:48 PM
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

5 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 26 Apr 2011, 01:16 PM
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
0
Mathijs
Top achievements
Rank 1
answered on 26 Apr 2011, 04:39 PM
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?

0
PetarP
Telerik team
answered on 02 May 2011, 03:55 PM
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. 
0
Mathijs
Top achievements
Rank 1
answered on 02 May 2011, 04:08 PM
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!
0
PetarP
Telerik team
answered on 04 May 2011, 04:44 PM
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. 
Tags
Data Access Free Edition
Asked by
Mathijs
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Mathijs
Top achievements
Rank 1
Share this question
or