<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>spmetalext Issue Tracker Rss Feed</title><link>http://spmetalext.codeplex.com/workitem/list/basic</link><description>spmetalext Issue Tracker Rss Description</description><item><title>Commented Issue: Problem with serialization in custom WCF Service [337]</title><link>http://spmetalext.codeplex.com/workitem/337</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a problem when I generate the proxy client of a service that have entities generated with SPMetal using the SPMetalExtender. The service returns me this error&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The service encountered an error.&lt;br /&gt;&lt;br /&gt;An ExceptionDetail, likely created by IncludeExceptionDetailInFaults&amp;#61;true, whose value is&amp;#58;&lt;br /&gt;System.InvalidOperationException&amp;#58; An exception was thrown in a call to a WSDL export extension&amp;#58; System.ServiceModel.Description.DataContractSerializerOperationBehavior&lt;br /&gt; contract&amp;#58; http&amp;#58;&amp;#47;&amp;#47;tempuri.org&amp;#47;&amp;#58;IStpnetPanricoPIService ----&amp;#62; System.Runtime.Serialization.InvalidDataContractException&amp;#58; Type &amp;#39;Microsoft.SharePoint.SPAttachmentCollection&amp;#39; cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.  See the Microsoft .NET Framework documentation for other supported types.&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException&amp;#40;String message, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.CreateDataContract&amp;#40;Int32 id, RuntimeTypeHandle typeHandle, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation&amp;#40;Int32 id, RuntimeTypeHandle typeHandle, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.GetDataContract&amp;#40;Type clrType&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.AddClassDataContract&amp;#40;ClassDataContract classDataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;XmlQualifiedName name, DataContract dataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.AddClassDataContract&amp;#40;ClassDataContract classDataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;XmlQualifiedName name, DataContract dataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.XsdDataContractExporter.Export&amp;#40;Type type&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportType&amp;#40;Type type, String partName, String operationName, XmlSchemaType&amp;#38; xsdType&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.DataContractSerializerMessageContractExporter.ExportBody&amp;#40;Int32 messageIndex, Object state&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportMessage&amp;#40;Int32 messageIndex, Object state&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportMessageContract&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.WsdlExporter.CallExtension&amp;#40;WsdlContractConversionContext contractContext, IWsdlExportExtension extension&amp;#41;&lt;br /&gt;   --- End of inner ExceptionDetail stack trace ---&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataBehavior.MetadataExtensionInitializer.GenerateMetadata&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.EnsureInitialized&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.InitializationData.InitializeFrom&amp;#40;ServiceMetadataExtension extension&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.GetInitData&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.TryHandleDocumentationRequest&amp;#40;Message httpGetRequest, String&amp;#91;&amp;#93; queries, Message&amp;#38; replyMessage&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.ProcessHttpRequest&amp;#40;Message httpGetRequest&amp;#41;&lt;br /&gt;   at SyncInvokeGet&amp;#40;Object , Object&amp;#91;&amp;#93; , Object&amp;#91;&amp;#93; &amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke&amp;#40;Object instance, Object&amp;#91;&amp;#93; inputs, Object&amp;#91;&amp;#93;&amp;#38; outputs&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.MessageRpc.Process&amp;#40;Boolean isOperationContextSet&amp;#41;&lt;br /&gt;Comments: ** Comment from web user: FLencinas ** &lt;p&gt;I Added  &amp;#91;DataContractAttribute&amp;#93; to the generated class, and it works&lt;/p&gt;</description><author>FLencinas</author><pubDate>Mon, 21 Feb 2011 11:33:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem with serialization in custom WCF Service [337] 20110221113336A</guid></item><item><title>Created Issue: Problem with serialization in custom WCF Service [337]</title><link>http://spmetalext.codeplex.com/workitem/337</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a problem when I generate the proxy client of a service that have entities generated with SPMetal using the SPMetalExtender. The service returns me this error&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The service encountered an error.&lt;br /&gt;&lt;br /&gt;An ExceptionDetail, likely created by IncludeExceptionDetailInFaults&amp;#61;true, whose value is&amp;#58;&lt;br /&gt;System.InvalidOperationException&amp;#58; An exception was thrown in a call to a WSDL export extension&amp;#58; System.ServiceModel.Description.DataContractSerializerOperationBehavior&lt;br /&gt; contract&amp;#58; http&amp;#58;&amp;#47;&amp;#47;tempuri.org&amp;#47;&amp;#58;IStpnetPanricoPIService ----&amp;#62; System.Runtime.Serialization.InvalidDataContractException&amp;#58; Type &amp;#39;Microsoft.SharePoint.SPAttachmentCollection&amp;#39; cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.  See the Microsoft .NET Framework documentation for other supported types.&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException&amp;#40;String message, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.CreateDataContract&amp;#40;Int32 id, RuntimeTypeHandle typeHandle, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation&amp;#40;Int32 id, RuntimeTypeHandle typeHandle, Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.GetDataContract&amp;#40;Type clrType&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.AddClassDataContract&amp;#40;ClassDataContract classDataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;XmlQualifiedName name, DataContract dataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.AddClassDataContract&amp;#40;ClassDataContract classDataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;XmlQualifiedName name, DataContract dataContract&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.DataContractSet.Add&amp;#40;Type type&amp;#41;&lt;br /&gt;   at System.Runtime.Serialization.XsdDataContractExporter.Export&amp;#40;Type type&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportType&amp;#40;Type type, String partName, String operationName, XmlSchemaType&amp;#38; xsdType&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.DataContractSerializerMessageContractExporter.ExportBody&amp;#40;Int32 messageIndex, Object state&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportMessage&amp;#40;Int32 messageIndex, Object state&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.MessageContractExporter.ExportMessageContract&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.WsdlExporter.CallExtension&amp;#40;WsdlContractConversionContext contractContext, IWsdlExportExtension extension&amp;#41;&lt;br /&gt;   --- End of inner ExceptionDetail stack trace ---&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataBehavior.MetadataExtensionInitializer.GenerateMetadata&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.EnsureInitialized&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.InitializationData.InitializeFrom&amp;#40;ServiceMetadataExtension extension&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.GetInitData&amp;#40;&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.TryHandleDocumentationRequest&amp;#40;Message httpGetRequest, String&amp;#91;&amp;#93; queries, Message&amp;#38; replyMessage&amp;#41;&lt;br /&gt;   at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.ProcessHttpRequest&amp;#40;Message httpGetRequest&amp;#41;&lt;br /&gt;   at SyncInvokeGet&amp;#40;Object , Object&amp;#91;&amp;#93; , Object&amp;#91;&amp;#93; &amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke&amp;#40;Object instance, Object&amp;#91;&amp;#93; inputs, Object&amp;#91;&amp;#93;&amp;#38; outputs&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4&amp;#40;MessageRpc&amp;#38; rpc&amp;#41;&lt;br /&gt;   at System.ServiceModel.Dispatcher.MessageRpc.Process&amp;#40;Boolean isOperationContextSet&amp;#41;&lt;br /&gt;</description><author>FLencinas</author><pubDate>Mon, 21 Feb 2011 11:20:14 GMT</pubDate><guid isPermaLink="false">Created Issue: Problem with serialization in custom WCF Service [337] 20110221112014A</guid></item></channel></rss>