Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WCF and MM.NET 2.4
Message
De
24/01/2008 16:43:28
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
WCF and MM.NET 2.4
Divers
Thread ID:
01285301
Message ID:
01285301
Vues:
76
Hi Kevin,

I am trying to use the MM Business Objects 2.4 with WCF and I am returing Dataset on one of my OperationContract, but some how I am getting SerializationException: error. Any idea why or do I need to wait for MM.NET 3.0 to use Oakleaf business objects.
   <ExceptionString>System.Runtime.Serialization.SerializationException: Type 'OakLeaf.MM.Main.Data.mmDataSet' with data contract name 'mmDataSet:http://schemas.datacontract.org/2004/07/OakLeaf.MM.Main.Data' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj)
   at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
   at System.Runtime.Serialization.DataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
   at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph)
   at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.SerializeParameterPart(XmlDictionaryWriter writer, PartInfo part, Object graph)</ExceptionString>
Thanks
Yassin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform