<?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: Issue in accessing WMS layers in ArcGIS API 3.1 for Silverlight in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161430#M4025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is the nuget you'd need:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/ArcGISSilverlight-ToolkitDataSources/"&gt;https://www.nuget.org/packages/ArcGISSilverlight-ToolkitDataSources/&lt;/A&gt;&lt;BR /&gt;But the Silverlight API has been completely out of support for several years now and it's likely the developer tooling no longer works with this. (To be honest I'm a little surprised people are still building new functionality with Silverlight these days &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2019 17:29:03 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2019-06-18T17:29:03Z</dc:date>
    <item>
      <title>Issue in accessing WMS layers in ArcGIS API 3.1 for Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161429#M4024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;&lt;DIV style="font-size: 12pt; font-family: 'Calibri'; color: #000080;"&gt;&lt;DIV&gt;We have developed an ArcGIS based Web application using&amp;nbsp; .net Silverlight framework (version 5).&lt;/DIV&gt;&lt;DIV&gt;The application consumes various layers published in ArcGIS server and displays them on the map.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Technologies used to develop the web application :&lt;/DIV&gt;&lt;DIV&gt;.Net framework version – 4.0&lt;/DIV&gt;&lt;DIV&gt;Silverlight Version – 5.1.50901.0&lt;/DIV&gt;&lt;DIV&gt;ESRIArcGIS.Client – 3.0.0.146&lt;/DIV&gt;&lt;DIV&gt;ESRIArcGIS.Client.Toolkit - 3.0.0.146&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now we have a new requirement to consume WMS layers published in Geoserver and display the layers along with the ArcGIS layers in the same map.&lt;/DIV&gt;&lt;DIV&gt;To consume WMS layers, we tried to install ‘ESRI.ArcGIS.Client.Toolkit.DataSources’ plug in from Nuget Package Manager. It resulted in below errors.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. Install-Package : Unable to find package 'ArcGISSilverlight-ToolkitDataSources'.&lt;/DIV&gt;&lt;DIV&gt;At line:1 char:16&lt;/DIV&gt;&lt;DIV&gt;+ Install-Package &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; ArcGISSilverlight-ToolkitDataSources&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [Install-Package], InvalidOperationException&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2. Tried to run the command&amp;nbsp; ‘Install-Package ArcGISSilverlight-All -Version 3.3.0.33’&lt;/DIV&gt;&lt;DIV&gt;which was found in link given below&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;A href="https://www.nuget.org/packages/ArcGISSilverlight-All/"&gt;https://www.nuget.org/packages/ArcGISSilverlight-All/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Install failed. Rolling back...&lt;/DIV&gt;&lt;DIV&gt;Install-Package : Could not install package 'ArcGISSilverlight-Core 3.3.0.33'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are comp&lt;/DIV&gt;&lt;DIV&gt;atible with that framework. For more information, contact the package author.&lt;/DIV&gt;&lt;DIV&gt;At line:1 char:16&lt;/DIV&gt;&lt;DIV&gt;+ Install-Package &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; ArcGISSilverlight-All -Version 3.3.0.33&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [Install-Package], InvalidOperationException&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3. Tried to add&amp;nbsp; ‘ESRI.ArcGIS.Client.Toolkit.DataSources’ which was found in a sample code in&amp;nbsp; Git Hub&lt;/DIV&gt;&lt;DIV&gt;Got following error.&lt;/DIV&gt;&lt;DIV&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; Assembly 'ESRI.ArcGIS.Client.Toolkit.DataSources, Version=10.2.5.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' uses 'ESRI.ArcGIS.Client, Version=10.2.5.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' which has a higher version than referenced assembly 'ESRI.ArcGIS.Client, Version=3.0.0.388, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'&amp;nbsp;&amp;nbsp;&amp;nbsp; e:\New folder\arcgis-samples-silverlight-master\src\ArcGISSilverlightSDK\Bin\Debug\ESRI.ArcGIS.Client.Toolkit.DataSources.dll&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As the above plug-in is not supporting, is there any other plug-in / version of the plug-in that supports WMS layers?&lt;/DIV&gt;&lt;DIV&gt;OR&lt;/DIV&gt;&lt;DIV&gt;Is there any alternate solution available to implement WMS layers with Silverlight in my web application?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161429#M4024</guid>
      <dc:creator>VinayS</dc:creator>
      <dc:date>2019-06-18T11:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in accessing WMS layers in ArcGIS API 3.1 for Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161430#M4025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is the nuget you'd need:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/ArcGISSilverlight-ToolkitDataSources/"&gt;https://www.nuget.org/packages/ArcGISSilverlight-ToolkitDataSources/&lt;/A&gt;&lt;BR /&gt;But the Silverlight API has been completely out of support for several years now and it's likely the developer tooling no longer works with this. (To be honest I'm a little surprised people are still building new functionality with Silverlight these days &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 17:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161430#M4025</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-06-18T17:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in accessing WMS layers in ArcGIS API 3.1 for Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161431#M4026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ToolkitDataSources issue is resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to add WMS layer published on GeoServer using the code given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var wmsLayer = new WmsLayer()&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;ID = "highways:sp_health_dh",&amp;nbsp;&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Url = "https://tnssdi.tn.gov.in/geoserver/wms",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SkipGetCapabilities = false,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Version = "1.1.1",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Opacity = 0.7,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;DisplayName = "District Hospitals",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Layers = new string[] { "highways:sp_health_dh" }&lt;BR /&gt; };&lt;BR /&gt; map.Layers.Add(wmsLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run the application, received the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unhandled exception at line 159, column 14 in http://localhost:60414/epathaigis.aspx&lt;/P&gt;&lt;P&gt;0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application&lt;/P&gt;&lt;P&gt;Code: 4004&lt;/P&gt;&lt;P&gt;Category: ManagedRuntimeError&lt;/P&gt;&lt;P&gt;Message: System.Security.SecurityException: A security exception occurred while trying to connect to the 'WMS' service. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application. If not, use a proxy page (handler) to broker communication. ---&amp;gt; System.Security.SecurityException ---&amp;gt; System.Security.SecurityException: Security error.&lt;/P&gt;&lt;P&gt;at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P&gt;at System.Net.Browser.BrowserHttpWebRequest.&amp;lt;&amp;gt;c__DisplayClassa.&amp;lt;EndGetResponse&amp;gt;b__9(Object sendState)&lt;/P&gt;&lt;P&gt;at System.Net.Browser.AsyncHelper.&amp;lt;&amp;gt;c__DisplayClass4.&amp;lt;BeginOnUI&amp;gt;b__0(Object sendState)&lt;/P&gt;&lt;P&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P&gt;at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)&lt;/P&gt;&lt;P&gt;at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P&gt;at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)&lt;/P&gt;&lt;P&gt;at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)&lt;/P&gt;&lt;P&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P&gt;at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)&lt;/P&gt;&lt;P&gt;at ESRI.ArcGIS.Client.Layer.Initialize()&lt;/P&gt;&lt;P&gt;at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P&gt;at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P&gt;at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve the error, I added crossdomain.xml in the root folder where the layers are published. Still I am getting the same error.&lt;/P&gt;&lt;P&gt;How can I resolve the above issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-in-accessing-wms-layers-in-arcgis-api-3-1/m-p/161431#M4026</guid>
      <dc:creator>VinayS</dc:creator>
      <dc:date>2019-07-11T09:17:04Z</dc:date>
    </item>
  </channel>
</rss>

