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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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