OpenAccess Enhancer warning

9 posts, 1 answers
  1. Marcel Härry
    Marcel Härry avatar
    28 posts
    Member since:
    Jul 2009

    Posted 08 Mar 2012 Link to this post

    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?

  2. Answer
    Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Marcel Härry
    Marcel Härry avatar
    28 posts
    Member since:
    Jul 2009

    Posted 09 Mar 2012 Link to this post

    Hi Jan
    This works perfect for me.
    Thank you.
  5. John Reynolds
    John Reynolds avatar
    32 posts
    Member since:
    Sep 2008

    Posted 03 Jul 2014 Link to this post

    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.
  6. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 08 Jul 2014 Link to this post

    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.
     
  7. John Reynolds
    John Reynolds avatar
    32 posts
    Member since:
    Sep 2008

    Posted 08 Jul 2014 in reply to Kristian Nikolov Link to this post

    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
  8. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 11 Jul 2014 Link to this post

    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.
     
  9. Hal
    Hal avatar
    1 posts
    Member since:
    Aug 2012

    Posted 12 Nov 2014 in reply to Kristian Nikolov Link to this post

    thanks, I had the same issue. I planned on using Telerik but only testing right now... hope this gets a bit easier to remove.
  10. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 17 Nov 2014 Link to this post

    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.
     
Back to Top
DevCraft banner