[Mono-bugs] [Bug 81264][Wis] New - Probably with Castle.DynamicProxy (I believe)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 29 18:22:27 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by wasabi at larvalstage.net.


--- shadow/81264	2007-03-29 17:22:27.000000000 -0500
+++ shadow/81264.tmp.8909	2007-03-29 17:22:27.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 81264
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: wasabi at larvalstage.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Probably with Castle.DynamicProxy (I believe)
+NHibernate.HibernateException: Creating a proxy instance failed --->
+System.ArgumentException: Duplicate type name within an assembly.
+  at System.Reflection.Emit.ModuleBuilder.DefineType (System.String name,
+TypeAttributes attr, System.Type parent, System.Type[] interfaces,
+PackingSize packsize, Int32 typesize) [0x00043] in
+  at System.Reflection.Emit.ModuleBuilder.DefineType (System.String name,
+TypeAttributes attr, System.Type parent, System.Type[] interfaces)
+[0x00000] in
+  at Castle.DynamicProxy.Builder.CodeBuilder.EasyType..ctor
+(Castle.DynamicProxy.Builder.CodeGenerators.ModuleScope modulescope,
+System.String name, System.Type baseType, System.Type[] interfaces, Boolean
+serializable) [0x00000] 
+  at
+(System.String typeName, System.Type baseType, System.Type[] interfaces)
+  at
+(System.Type baseClass, System.Type[] interfaces) [0x00000] 
+  at Castle.DynamicProxy.Builder.DefaultProxyBuilder.CreateClassProxy
+(System.Type theClass, System.Type[] interfaces) [0x00000] 
+  at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy (System.Type
+baseClass, System.Type[] interfaces, IInterceptor interceptor, Boolean
+checkAbstract, System.Object[] argumentsForConstructor) [0x00000] 
+  at NHibernate.Proxy.CastleProxyFactory.GetProxy (System.Object id,
+ISessionImplementor session) [0x00000] --- End of inner exception stack
+trace ---
+If I have time later I will dig into Castle.DynamicProxy and see exactly
+what the issue is... right now I'm at work just giving our internal app a test.

More information about the mono-bugs mailing list