Hail, my code generates a proxy class using reflection emit. Everything works
fine, but when i try to create the instance of the proxy i get an exception.

My proxy generator works fine in other project types.

Any idea? Thanks

Activator.CreateInstance(generatedType, obj, interceptor);

Exception: 
"System.TypeLoadException: Could not load type 'ServiceProxy' from assembly
'GeneratedProxyAssembly, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'.\n  at System.Reflection.MonoCMethod.Invoke
(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder
binder, System.Object[] parameters, System.Globalization.CultureInfo
culture) [0x00000] in <filename unknown>:0 \n  at
System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
\n  at System.Activator.CreateInstance (System.Type type, BindingFlags
bindingAttr, System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture, System.Object[]
activationAttributes) [0x00000] in <filename unknown>:0 \n  at
System.Activator.CreateInstance (System.Type type, System.Object[] args,
System.Object[] activationAttributes) [0x00000] in <filename unknown>:0



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Exception-creating-instance-of-generated-type-tp5711032.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to