Arrh! Invocation Error! NHibernate

I had started to get this annoying error when I ran my web app:

Exception has been thrown by the target of an invocation.

Simple fix. Add back those virtual keywords onto my POCOs that somehow disappeared.
public int Id {get;set}   –>  public virtual int Id {get;set;}

This entry was posted in NHibernate and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>