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

OpenAccess Enhancer warning

8 Answers 601 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcel Härry
Top achievements
Rank 1
Marcel Härry asked on 09 Mar 2012, 01:45 AM
This one drives me crazy: 

Telerik OpenAccess Enhancer, Version 2011.3.1129.2, Copyright (C) 1996-2011 Telerik
MSBUILD : OpenAccess Enhancer warning : No persistent classes found. Is the metadata information missing?

Yes he's right i have not any data classes and i want use ms entity framework for this project.
It's only a warning but this prevents me from vs deploy my wpf project to an internal webserver.
i've manually deleted everything (so i think) in my project file that points to orm, with no luck.

Also if i xcopy deploy this to another machine i get a type initializer error on the other machine.
then i removed ORM completely from my developer machine, new compile & deploy and everything works.
i really want to do some steps with orm, any ideas what i missed?

8 Answers, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 09 Mar 2012, 12:04 PM
Hello Marcel,
Sorry that we are such persistent in your projects.
We add an extra build step to your project if you have added our domain model once. To get rid of that you have to change the project file directly. In Visual Studio right click on the problematic project and say 'Unload'. Now right click again and say 'Edit'. Now you see the project file in Xml format and you can remove the OpenAccess include line at the end of the project.
<Import Condition="Exists('$(MSBuildExtensionsPath)\OpenAccess.targets')" Project="$(MSBuildExtensionsPath)\OpenAccess.targets" />

All the best,
Jan Blessenohl
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
0
Marcel Härry
Top achievements
Rank 1
answered on 09 Mar 2012, 01:24 PM
Hi Jan
This works perfect for me.
Thank you.
0
John Reynolds
Top achievements
Rank 1
answered on 03 Jul 2014, 09:57 PM
It's 7/3/2014, and this just happened to me using VS2013 and the latest Telerik Open Access. Took me three hours to locate, and was in a solution/project which doesn't even use Telerik products. Maddening.
0
Kristian Nikolov
Telerik team
answered on 08 Jul 2014, 06:40 AM
Hi John ,

We are sorry for the inconvenience you have experienced.

This behavior is normal in a situation where the Enhancer is integrated in a project which does not contain a Telerik Data Access model with persistent classes. The purpose of the warning is to notify you that the Enhancer is integrated in a project which does not have any classes that need to be enhanced.

As the Enhancer tool is integrated in a project automatically when a model is added to it, it is possible that the project on your side used to contain a model which was later removed. The MSBuild script which integrates the Enhancer into the project cannot be automatically removed when the model is deleted. For this reason the warning will appear when you remove a Telerik Data Access model from its containing project.

We realize that this situation can be frustrating to deal with. Therefore we intend to introduce resources to help users identify and deal with this scenario more easily.

I hope this helps. Do not hesitate to get back to us should you have additional questions or need help.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
John Reynolds
Top achievements
Rank 1
answered on 08 Jul 2014, 09:35 PM
Kristian,

Thank you for the thoughtful reply. I read the links with great interest.
The one thing I should add is that the project/solution I was working on has literally never had any OpenAccess additions or activity whatsoever. I have only used the OpenAccess product in one project so far, out of the 50+ I work on. 

Best,

John
0
Kristian Nikolov
Telerik team
answered on 11 Jul 2014, 10:53 AM
Hello John,

Thank you for getting back to us.

This case is certainly interesting as the Enhancer is integrated by default only in following Telerik Data Access project templates:
  • Telerik Data Access Class Library
  • Telerik Data Access Fluent Class Library
  • Telerik Data Access Dynamic Data Application (both in the model project and in the web application project)
  • Telerik Data Access Web Application (only in the model project)
  • Telerik Data Access WebSite (only in the model project)

In other types of projects, the Enhancer can be added only by adding a Fluent or Domain model to the project, installing the Telerik.DataAccess.Fluent NuGet package or manually by editing the proj file. Do note that uninstalling the NuGet package will also remove the Enhancer integration.

On our side we were unable to reproduce a scenario besides the aforementioned ones that would integrate the enhancer in a project. Therefore, if you are using a source control system and are interested in what exactly cause the import to be present, we would recommend checking when was the import of the OpenAccess.targets file introduced to the project in question.

I hope this helps. Do contact us again if you have any more questions or need help.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
Hal
Top achievements
Rank 1
answered on 13 Nov 2014, 12:25 AM
thanks, I had the same issue. I planned on using Telerik but only testing right now... hope this gets a bit easier to remove.
0
Kristian Nikolov
Telerik team
answered on 17 Nov 2014, 09:05 AM
Hello Hal,

Thank you for contacting us.

We are glad you are interested in Telerik Data Access and have resolved the situation on your side. If you are interested in a functionality that would ease the removal of the Enhancer tool, please feel free to use our Ideas and Feedback Portal to create a feature request for it. Voting for the request will help us prioritize its potential implementation.

In case you have additional questions regarding Telerik Data Access, please do not hesitate to get back to us via the Ticket System or post in our forums again.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Getting Started
Asked by
Marcel Härry
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Marcel Härry
Top achievements
Rank 1
John Reynolds
Top achievements
Rank 1
Kristian Nikolov
Telerik team
Hal
Top achievements
Rank 1
Share this question
or