No metadata has been registered for class

Thread is closed for posting
2 posts, 0 answers
  1. Jaime Weise
    Jaime Weise avatar
    25 posts
    Member since:
    Nov 2008

    Posted 01 Aug 2010 Link to this post

    I am receiving this error:
    No metadata has been registered for class ShortcutAnalyzer.Data.FileType. (This usually indicates, that either this class is not declared persistent or it is declared persistent but not enhanced. The class was loaded from file:///C:/Users/jaime/Documents/Visual Studio 2008/Projects/ADDINS/SHORTCUT ANALYZER/ShortcutAnalyzer.SimpleTester/bin/Debug/ShortcutAnalyzer.Data.DLL.)

    First, I started out with a database and used the reverse mapping wizard to generate the classes in a project called ShorcutAnalyzer.Data. Next I referenced that project from a console application. The only code that accesses the generated data classes is in a project called ShortcutAnalyzer.Repository

    In short ShortcutAnalyzer.Repository used the ShortcutAnalyzer.Data project to access the database. The ShortcutAnalyzer.Data project also has an ObjectScopeProvider class in it for accessing the database. 

    The generated classes don't have the persistent attribute attached to them I guess because they are to be regenerated from the database(ie. Reverse Mapping). At any rate I am stuck with the above error. Any help would be greatly appreciated. I have already used up way more time than it would take to implement this using Entities Framework. I like most of Telerik's software so I thought I would give this a try but I am getting discouraged.

  2. Damyan Bogoev
    Damyan Bogoev avatar
    581 posts

    Posted 05 Aug 2010 Link to this post

    Hello jaime,

    We were unable to reproduce this behavior on our side. Could you please verify that the Persistent attribute is missing for the reverse-mapped classes? If so, this would be a problem on our side.Please note that for each table two partial classes are generated and this attribute is specified on only one of them.

    In order to reproduce the wrong behavior we will have to ask you to provide us with some additional information.  
    Please check if the classes from the OpenAccess library are enhanced and provide us with the details:
    - Load the deployed OpenAccess library;
    - Check if the persistent classes within this assembly implement the Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable interface;
    Could you please also provide us with the logging information from OpenAccess? Helpful information regarding the logging mechanism can be found in this help article under the Tracing & Logging Settings paragraph.
    We are looking forward to your reply.
    Best wishes,
    Damyan Bogoev
    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
Back to Top