views:

13

answers:

1

I am getting this error even though all my mappings are pretty simple and correct. I get this error only on select classes. Can someone help?

A: 

This error occurs since the class is not public. Just change the class to public and this won't occur again. However, if you do not want to expose the assembly outside the Assembly you can still mark the constructor as 'internal'.

The only downside to it is that the class shows up in intellisense. However, you would get a compile time error if you try to use it. So that should not be a problem.

For more details http://weblogs.asp.net/chanderdhall/archive/2010/09/09/no-persister-for-lt-classname-gt.aspx

Chander Dhall
that works. Thanks. I like the idea of keeping the constructor internal.