System.InvalidOperationException: Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true

Description

Seems the generated proxy has problems with methods with generic constraints:

[exec] System.InvalidOperationException: Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true.
[exec] at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException()
[exec] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boole
an skipVisibilityChecks)
[exec] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[exec] at NHibernate.Proxy.DefaultLazyInitializer.Intercept(InvocationInfo info)
[exec]
[exec] Unhandled Exception: System.ServiceModel.FaultException`1[Orbis.OA.Common.WcfService.ContractBase.Faults.InternalSystemFault]: System.InvalidOperati
onException: Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true.
[exec] at ContactProfileProxy.ValidateProperty[T0](PropertyInfo )
...

This is the signature of the method in InternalEntityBase

public virtual ErrorList ValidateProperty<T>(PropertyInfo prop) where T: InternalEntityBase, IPersistable

Environment

None

Activity

Show:

Oskar Berggren November 14, 2012 at 12:01 PM

Mass-closing issues resolved with no fix-version and untouched for 30 days.

Oskar Berggren September 2, 2012 at 8:12 PM

There was an issue with getting this exception when running on .Net 4.0, for which a fix have now been committed to master. More details in NH-2819.
But given the generic constraints, this might actually be the same as NH-3244.

Oskar Berggren September 2, 2012 at 12:47 AM

Which .Net framework version is this from?

Duplicate

Details

Assignee

Reporter

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created January 4, 2012 at 10:51 PM
Updated November 14, 2012 at 12:01 PM
Resolved September 6, 2012 at 6:27 PM
Who's Looking?