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

ORM upgrade to 2011

1 Answer 81 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gopinath
Top achievements
Rank 1
Gopinath asked on 20 Dec 2011, 12:34 PM
Hello,

I just upgraded telerik orm version from 2009 to 2011.2. I did used upgrade references option to fix the reference issues. Also my project was using telerik.openacess.query. I removed it and included 35.extensions.dll

Below are the issues I find after the upgrade:

1. some of my code is using Iobjectscopequery object. After the upgrade I am getting an error that 'cannot resolve Iobjectscopequery' object.
2. Getting a warning "Warning 5 OpenAccess Warning: No persistent classes found. Is the metadata information missing?"

3. "Found conflicts between different versions of the same dependent assembly". this error recommends to add a redirect in the config file. Below is the code that it adds in the app.config. Why is this needed? will it cause any issues?

<

 

 

runtime>

 

<

 

 

assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

 

<

 

 

dependentAssembly>

 

<

 

 

assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7CE17EEAF1D59342" culture="neutral"/>

 

<

 

 

bindingRedirect oldVersion="0.0.0.0-2011.2.713.3" newVersion="2011.2.713.3"/>

 

</

 

 

dependentAssembly>

 

</

 

 

assemblyBinding>

 

</

 

 

runtime>

 


Could you please assist?

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 22 Dec 2011, 04:57 PM
Hello,

 1) Is there some typo error in your post? There is not type with the name 'IObjectScopeQuery' in the OpenAccess API. There is an 'IObjectScope' and an 'IQuery' interface. Can you provide the actual code that causes this error?
 2) The error 'No persistent classes found. Is the metadata information missing?'  usually indicates that the assembly with the persistent classes is not enhanced.
3) The binding redirect entry is used to redirect an assembly reference to the another version of that assembly. The entry will redirect to the 2011.2.713.3 version of the Telerik.OpenAccess assembly.
 
 Are you using the 'classic' approach of the product or the domain model approach?  Which OpenAccess assembly references do you have in your project?

All the best,
Ady
the Telerik team

Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
Development (API, general questions)
Asked by
Gopinath
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or