Hi Carlos, Are you using SVN HEAD? There were some patches in this area in the last 2 weeks.
Robert Carlos Ble wrote: > The AssemblyResolve event handler is being called and the assembly is loaded > and returned so that is not the problem. > Here is the stack trace: > > Failures: > 1) bindableObjectsTests.BindableObjectsMain.ChangeBindable : > System.Reflection.TargetInvocationException : Exception has been thrown by > the target of an invo > cation. > ----> System.TypeLoadException : Could not load type > 'PropChPrxy_SimpleBusinessObject2409200722, BoxerpDynamicAssembly, Version= > 0.0.0.0, Culture=neutral, PublicKeyToken=null'. > at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags > invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, > System.Globalization.CultureInfo culture) [0x00000] > at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] > parameters) [0x00000] > at System.Runtime.Serialization.ObjectRecord.LoadData ( > System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector > selector, StreamingContext context) [0x00000] > at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] > at > System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject ( > System.IO.BinaryReader reader) [0x00000] > at > System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph( > System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, > System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000] > at > System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize( > System.IO.Stream serializationStream, > System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] > at > System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize ( > System.IO.Stream serializationStream) [0x00000] > at Boxerp.Client.Cloner.GetSerializedClone (System.Object source) > [0x0001c] in > /home/carlos/boxerp/trunk/src/client-lib/client-base/DataBinding/Cloner.cs:19 > > > The source code of the project is entirely in the its subversion repository > and it's public if anyone wants to try it. > There are a Monodevelop project for the library and a Monodevelop project > for the unit tests. > > I can try to dig into the Mono code so any clue would be appreciated. > > Thanks > > > > 2007/9/24, Carlos Ble <[EMAIL PROTECTED]>: >> Hi! >> I'm having problems to serialize a dynamic type created with >> Reflection.Emit. The BinaryFormatter does not find the >> dynamic assembly. That is normal but I've fixed that in .Net, subscribing >> a handler to the AppDomain.CurrentDomain.AssemblyResolve, >> so that I can load the assembly properly. This is not working in Mono, I >> think the event is not raised although I need to debug a bit more. >> Is this a know issue?. >> I have the classes and more info in this post: >> http://www.carlosble.com/?p=91 >> >> Thanks >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
