Hi All,
I have a .NET Remote Object deployed on IIS that is passing back detached objects to a Winform Client. I'm using the default Binary Formatter.
When there are no lazily loaded proxies associated with the detached business objects, it works fine.
However when I do lazy load some of the associations and it tries to pass back a proxy, I get the error at the bottom of this post.
I did notice another post at
http://nhibernate.sourceforge.net/forum ... .php?t=298 regarding problems with deserializing proxies and I was wondering if the error below was related?
Thanks for your help.
Gaj
************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.AmbiguousMatchException: Ambiguous match found.
at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name)
at Castle.DynamicProxy.Builder.CodeBuilder.SimpleAST.MethodTokenExpression.Emit(IEasyMember member, ILGenerator gen)
at Castle.DynamicProxy.Builder.CodeBuilder.SimpleAST.VirtualMethodInvocationExpression.Emit(IEasyMember member, ILGenerator gen)
at Castle.DynamicProxy.Builder.CodeBuilder.SimpleAST.AssignStatement.Emit(IEasyMember member, ILGenerator gen)
at Castle.DynamicProxy.Builder.CodeBuilder.AbstractCodeBuilder.Generate(IEasyMember member, ILGenerator il)
at Castle.DynamicProxy.Builder.CodeBuilder.EasyMethod.Generate()
at Castle.DynamicProxy.Builder.CodeBuilder.EasyProperty.Generate()