Fixed my problem:

Changed this
https://github.com/nhibernate/nhibernate-core/blob/378be39482e36a419e3e96fea54de211ef9580ce/src/NHibernate/Intercept/DefaultDynamicLazyFieldInterceptor.cs#L53
 

to:

object returnValue;
try
{
  returnValue = info.InvokeMethodOnTarget();
}
catch (TargetInvocationException ex)
{
  throw ReflectHelper.UnwrapTargetInvocationException(ex);
}
return returnValue;

If I can manage it I'll try and submit a PR but I can't even get NH to 
build from source from a fresh download due to AssemblyInfo issues.

Thanks, Mark

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to