<?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 Error when running a GeoProcessing Task in a WCF service. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-when-running-a-geoprocessing-task-in-a-wcf/m-p/252182#M6564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to run a Geprocessing Task in a WCF service. We get a TypeIntialization Exception Error.&lt;/P&gt;&lt;P&gt;We would like to know how to solve this error. Do we need to add any reference etc don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Created a WCF service library project.&lt;/P&gt;&lt;P&gt;2.We added reference to the ESRI.ArcGIS.Client.dll (ArcGIS Silverlight API library) to it. &lt;/P&gt;&lt;P&gt;3.We run the service and try to execute the ExecuteMemConnectGPJob() method as shown in the snap.&lt;/P&gt;&lt;P&gt;3.This method&amp;nbsp; contains a Geoprocessing task.&lt;/P&gt;&lt;P&gt;4. We get an error as soon as hits the line 43 shown in the snap.&lt;/P&gt;&lt;P&gt;5.We cannot figure out how to solve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can we use ArcGIS silveright API library in a WCF service ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not what is there any work around to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Muralidhar Moka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is shown in the snap shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 17:28:44 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-05-14T17:28:44Z</dc:date>
    <item>
      <title>Error when running a GeoProcessing Task in a WCF service.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-when-running-a-geoprocessing-task-in-a-wcf/m-p/252182#M6564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to run a Geprocessing Task in a WCF service. We get a TypeIntialization Exception Error.&lt;/P&gt;&lt;P&gt;We would like to know how to solve this error. Do we need to add any reference etc don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Created a WCF service library project.&lt;/P&gt;&lt;P&gt;2.We added reference to the ESRI.ArcGIS.Client.dll (ArcGIS Silverlight API library) to it. &lt;/P&gt;&lt;P&gt;3.We run the service and try to execute the ExecuteMemConnectGPJob() method as shown in the snap.&lt;/P&gt;&lt;P&gt;3.This method&amp;nbsp; contains a Geoprocessing task.&lt;/P&gt;&lt;P&gt;4. We get an error as soon as hits the line 43 shown in the snap.&lt;/P&gt;&lt;P&gt;5.We cannot figure out how to solve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can we use ArcGIS silveright API library in a WCF service ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not what is there any work around to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Muralidhar Moka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is shown in the snap shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 17:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-when-running-a-geoprocessing-task-in-a-wcf/m-p/252182#M6564</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-14T17:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running a GeoProcessing Task in a WCF service.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-when-running-a-geoprocessing-task-in-a-wcf/m-p/252183#M6565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how you were able to add the Silverlight reference. You should be add the WPF library &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ESRI.ArcGIS.Client.dll and it has the same classes for GP task&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 18:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-when-running-a-geoprocessing-task-in-a-wcf/m-p/252183#M6565</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2015-11-23T18:26:49Z</dc:date>
    </item>
  </channel>
</rss>

