<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: has anyone been able to serialize IdentifyResults and/or it's collection in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222801#M5595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What error are you getting? Are you serializing just the geometry? I'm guessing the trouble is serializing the entire Graphic, which includes Symbol.&lt;BR /&gt;&lt;BR /&gt;This related thread might help: &lt;A href="http://forums.arcgis.com/threads/8774-save-layer-to-xml-file"&gt;http://forums.arcgis.com/threads/8774-save-layer-to-xml-file&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error's a bit difficult to understand to be honest. I wont copy/paste the entire strack trace here, but here's how it goes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerializerOperationBehavior&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; contract: Silverlight.ESRIMapping:ESRIMappingService ----&amp;gt; System.Runtime.Serialization.InvalidDataContractException: Type 'System.Windows.Input.TouchDevice' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.&amp;nbsp; If the type is a collection, consider marking it with the CollectionDataContractAttribute.&amp;nbsp; See the Microsoft .NET Framework documentation for other supported types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String message, Type type)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what you said does make sense. Currently, I'm trying to declare a serializable class where I have all the properties as in IdentifyResult, but skip the symbol because I don't need it here...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 17:29:17 GMT</pubDate>
    <dc:creator>SangamLama</dc:creator>
    <dc:date>2011-02-17T17:29:17Z</dc:date>
    <item>
      <title>has anyone been able to serialize IdentifyResults and/or it's collection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222799#M5593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm carrying out an IdentifyTask on the provider layer of my application. It returns a List&amp;lt;IdentifyResult&amp;gt; which needs to be passed to the SL side through my WCF service. I was looking this example, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and MapPoint gets serialized just as easily. But IdentifyResult doesn't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 12:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222799#M5593</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-02-17T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: has anyone been able to serialize IdentifyResults and/or it's collection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222800#M5594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What error are you getting? Are you serializing just the geometry? I'm guessing the trouble is serializing the entire Graphic, which includes Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This related thread might help: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/8774-save-layer-to-xml-file"&gt;http://forums.arcgis.com/threads/8774-save-layer-to-xml-file&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 15:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222800#M5594</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-17T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: has anyone been able to serialize IdentifyResults and/or it's collection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222801#M5595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What error are you getting? Are you serializing just the geometry? I'm guessing the trouble is serializing the entire Graphic, which includes Symbol.&lt;BR /&gt;&lt;BR /&gt;This related thread might help: &lt;A href="http://forums.arcgis.com/threads/8774-save-layer-to-xml-file"&gt;http://forums.arcgis.com/threads/8774-save-layer-to-xml-file&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error's a bit difficult to understand to be honest. I wont copy/paste the entire strack trace here, but here's how it goes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerializerOperationBehavior&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; contract: Silverlight.ESRIMapping:ESRIMappingService ----&amp;gt; System.Runtime.Serialization.InvalidDataContractException: Type 'System.Windows.Input.TouchDevice' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.&amp;nbsp; If the type is a collection, consider marking it with the CollectionDataContractAttribute.&amp;nbsp; See the Microsoft .NET Framework documentation for other supported types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String message, Type type)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what you said does make sense. Currently, I'm trying to declare a serializable class where I have all the properties as in IdentifyResult, but skip the symbol because I don't need it here...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 17:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222801#M5595</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-02-17T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: has anyone been able to serialize IdentifyResults and/or it's collection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222802#M5596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;nvm. Along the way, I had been trying to serialize a map itself. How brave and stupid &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The error's a bit difficult to understand to be honest. I wont copy/paste the entire strack trace here, but here's how it goes&lt;BR /&gt;&lt;BR /&gt;An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:&lt;BR /&gt;System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerializerOperationBehavior&lt;BR /&gt; contract: Silverlight.ESRIMapping:ESRIMappingService ----&amp;gt; System.Runtime.Serialization.InvalidDataContractException: Type 'System.Windows.Input.TouchDevice' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.&amp;nbsp; If the type is a collection, consider marking it with the CollectionDataContractAttribute.&amp;nbsp; See the Microsoft .NET Framework documentation for other supported types.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String message, Type type)&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;what you said does make sense. Currently, I'm trying to declare a serializable class where I have all the properties as in IdentifyResult, but skip the symbol because I don't need it here...&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 12:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/has-anyone-been-able-to-serialize-identifyresults/m-p/222802#M5596</guid>
      <dc:creator>SangamLama</dc:creator>
      <dc:date>2011-02-18T12:42:22Z</dc:date>
    </item>
  </channel>
</rss>

