Search   

Sunday, February 05, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender.
kreis.gif Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  Error 16 Error:...
 Error 16 Error: Can't find class mapping for class
 
 3/23/2007 8:05:33 AM
schoetbi
15 posts


Error 16 Error: Can't find class mapping for class
Hello,
I just made an existing class NDOPersistent and got the following error:

Error 16 Error: Can't find class mapping for class TestClass NDO Enhancer


What reasons could this have? Thanks for any hints!

regards,
Tobias
 3/23/2007 8:34:53 AM
Mirko
109 posts
5th


Re: Error 16 Error: Can't find class mapping for class

Hi Tobias,

have a look at your NDO Configuration settings. Make sure to enable the enhancer for the assembly the persistent class resides in. There is a description of the settings in the Tutorial section of the NDO documentation. You can find a description of the settings in the online tutorial video too. The steps are as follows:

1. Mark your class as [NDOPersistent]
2. Enable the enhancer for the assembly
3. Enable the Add-in (but not the enhancer) for the assembly consuming the persistent class. This is not necessary, but makes things easier. Let NDO always generate the schema files.
4. After Compilation look at the project of the consuming assembly (most probably your App). It should contain a NDOMapping.xml file. If not, the file should be in the project directory and can be inserted into the project manually. (This is for your convenience only--NDO works without the file beeing part of the project.) Open the file and make sure, it contains a mapping entry for your class.
5. If step 4 fails repeat step 4 with the assembly containing your persistent class.

If one of the steps 4 or 5 fails, look, if you can find the reason for the failure in the NDO configuration. If you get stuck, copy the solution and strip it down to a minimal size showing the same behavior. Send the zipped solution to us and we'll help you.

Regards
Mirko

 3/23/2007 8:52:39 AM
schoetbi
15 posts


Re: Error 16 Error: Can't find class mapping for class
Hello Mirko,

thank you for the answer. Sorry for not mentioning, that I allready followed the normal steps in making a class persistent, the file NDOMapping.xml resides in projectfolder and is also copied in bin/Debug. But still the Enhancer throws this error

Regards,
Tobias
 3/23/2007 9:13:04 AM
schoetbi
15 posts


Re: Error 16 Error: Can't find class mapping for class
Hello again,

I found the reason. I had a persistent assembly depending on another assembly. I activated "merge from base ass.." on the parent and it worked.

Thanks,
Tobias
 3/26/2007 11:02:36 AM
Mirko
109 posts
5th


Re: Error 16 Error: Can't find class mapping for class

Oh, yes, we have to change the NDO configuration dialog in the next release to not allow to disable "merge from base assembly"....

Best regards
Mirko

  NDO-Forum postings in english please, if possible.  Developing with NDO  Error 16 Error:...
  SearchSearch  Forum HomeForum Home