[Mono-bugs] [Bug 320340] Incompatability with .net in soap serialization
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 15 16:26:06 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=320340
http://bugzilla.novell.com/show_bug.cgi?id=320340#c1
jason pepas <cell at cs.utexas.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cell at cs.utexas.edu
--- Comment #1 from jason pepas <cell at cs.utexas.edu> 2009-12-15 21:26:03 UTC ---
I am a systems administrator for UT Computer Sciences. We run a large linux
network here and I have a user whom I think is experiencing this bug.
He has a windows .NET app which has generated a large serialized dataset.
However, he is unable to load that dataset using the mono-compiled version of
his program. This is the error message:
$ /lusr/opt/mono-2.4.2.3/bin/mono RLFramework.exe
System.Runtime.Serialization.SerializationException: Field "mLearningEnabled"
not found in class RLFramework.Agent1
at
System.Runtime.Serialization.Formatters.Soap.SoapReader.DeserializeSimpleObject
(System.Object obj, Int64 id, System.Boolean& hasFixup) [0x00000]
at System.Runtime.Serialization.Formatters.Soap.SoapReader.DeserializeObject
(System.Type type, Int64 id, Int64 parentId, System.Reflection.MemberInfo
parentMemberInfo, System.Int32[] indices) [0x00000]
at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize ()
[0x00000]
at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize
(System.IO.Stream inStream, ISoapMessage soapMessage) [0x00000]
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000]
at RLFramework.AgentBase`1[RLFramework.IEnv_StateFloatInt].CreateFromFile
(System.String fileName, Boolean BinaryFormat) [0x00000]
at RLFramework.Connect4Board.Connect4Board_Load (System.Object sender,
System.EventArgs e) [0x00000]
at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000]
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000]
These are the instructions the user supplied to demonstrate the problem. I'm
including them here to provide a better description of the problem:
"Put the two attached files in any directory on a windows machine that has .Net
runtime and remove the .txt extension from RLFramework.exe.txt.
Double click on RLFramework.exe which was VB.Net compiled on windows under
Visual Studio 2005. A window opens showing a Connect4 board. The user is player
1 and the computer is player 2. Play the game to verify it is working.
Then put the same two files on a linux box with Mono installed and run the
executable using mono: mono crashes at the point of trying to deserialize the
XML file P2_Games500000 into an object of class Agent1. Mono complains that the
field "mLearningEnabled" (see it in the XML) is not a member of class Agent1
and indeed it is not - it is a member of a base class of Agent1, but why should
that cause Mono to crash where .Net on windows does not?"
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list