<?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: Domain Service Issue in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/domain-service-issue/m-p/704456#M18109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure you add the Silverlight ESRI.ArcGIS.Client.dll to your Silverlight project BEFORE you add a reference to the domain service. Doing that, it should pick up the types in the assembly, instead of creating its own.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 18:02:12 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2011-08-29T18:02:12Z</dc:date>
    <item>
      <title>Domain Service Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/domain-service-issue/m-p/704455#M18108</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;SPAN&gt;I am following this &lt;/SPAN&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" rel="nofollow noopener noreferrer" target="_blank"&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;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;post about sending geometry from Silverlight to server. Instead of usind Silverlight Enabled WCF service I am using RIA services and created a DomainService class on the server. I added WPF build of the ESRI.ArcGIS.Client.dll assembly. My domain service class looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;

namespace WebMVC.TestSilverlightHost.Services
{

&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: Create methods containing your application logic.
&amp;nbsp;&amp;nbsp;&amp;nbsp; [EnableClientAccess()]
&amp;nbsp;&amp;nbsp;&amp;nbsp; public class PropertyBoundaryDomainService : DomainService
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public bool SaveGraphics(IEnumerable&amp;lt;ESRI.ArcGIS.Client.Graphic&amp;gt; GraphicCollection)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I compile my application it gives me this error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The Complex Type 'ESRI.ArcGIS.Client.Graphic' already exists in another assembly. Complex Types cannot be defined in multiple assemblies."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this error occurs due to the Generated Code that is generated by the RIA services on the Silverlight end. Is there any other reason for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am assuming this cannot be done using DomainServices. Can someone shed some light on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/domain-service-issue/m-p/704455#M18108</guid>
      <dc:creator>IgressT</dc:creator>
      <dc:date>2021-12-12T05:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Domain Service Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/domain-service-issue/m-p/704456#M18109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure you add the Silverlight ESRI.ArcGIS.Client.dll to your Silverlight project BEFORE you add a reference to the domain service. Doing that, it should pick up the types in the assembly, instead of creating its own.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 18:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/domain-service-issue/m-p/704456#M18109</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-08-29T18:02:12Z</dc:date>
    </item>
  </channel>
</rss>

