[Mono-bugs] [Bug 391782] New: WCF breaks down between Linux client and Windows server
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat May 17 13:20:58 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=391782
Summary: WCF breaks down between Linux client and Windows server
Product: Mono: Class Libraries
Version: SVN
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: WCF
AssignedTo: atsushi at ximian.com
ReportedBy: schmmd at cs.washington.edu
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=216196)
--> (https://bugzilla.novell.com/attachment.cgi?id=216196)
The source code to repeat the example.
The attached example works fine if both the client and the server are on
Windows or both the client and the server are on Linux. However, if the client
is on Linux and the server is on Windows, I get the following exception with
the latest mono checkout:
bash-3.2# mono Program.exe
Starting the client... [press enter to exit]
Unhandled Exception: System.Runtime.Serialization.SerializationException:
Expecting state 'EndElement'. Encountered state 'Text' with name '' with
namespace ''.
at System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Type type, System.Xml.XmlReader reader) [0x00000]
at System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Xml.XmlReader reader, System.Type type,
System.Runtime.Serialization.KnownTypeCollection knownTypes,
IDataContractSurrogate surrogate, System.String name, System.String Namespace,
Boolean verifyObjectName) [0x00000]
at System.Runtime.Serialization.DataContractSerializer.ReadObject
(System.Xml.XmlDictionaryReader reader, Boolean verifyObjectName) [0x00000]
at System.Runtime.Serialization.XmlObjectSerializer.ReadObject
(System.Xml.XmlDictionaryReader reader) [0x00000]
at
System.ServiceModel.Dispatcher.DataContractMessagesFormatter.MessageToParts
(System.ServiceModel.Description.MessageDescription md,
System.ServiceModel.Channels.Message message) [0x00000]
at System.ServiceModel.Dispatcher.BaseMessagesFormatter.DeserializeReply
(System.ServiceModel.Channels.Message message, System.Object[] parameters)
[0x00000]
at System.ServiceModel.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription od, System.Object[]
parameters) [0x00000]
at System.ServiceModel.ClientRuntimeChannel.Process
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00000]
at __clientproxy_Contract.method () [0x00000]
at WCFTestClient.Program.Main (System.String[] args) [0x00000]
The method named "method()" does run on the server (it prints to the console on
the server app), but this exception occurs on deserialization of the TimeSpan
object.
I compile the source with:
gmcs -r:/usr/lib/mono/3.0/System.ServiceModel.dll
-r:/usr/lib/mono/3.0/System.Runtime.Serialization.dll Server.cs
gmcs -r:/usr/lib/mono/3.0/System.ServiceModel.dll
-r:/usr/lib/mono/3.0/System.Runtime.Serialization.dll Client.cs
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list