AnsweredAssumed Answered

Issue in accessing WMS layers in ArcGIS API 3.1 for Silverlight

Question asked by vinaypix on Jun 18, 2019
Latest reply on Jul 11, 2019 by vinaypix
We have developed an ArcGIS based Web application using  .net Silverlight framework (version 5).
The application consumes various layers published in ArcGIS server and displays them on the map.
 
Technologies used to develop the web application :
.Net framework version – 4.0
Silverlight Version – 5.1.50901.0
ESRIArcGIS.Client – 3.0.0.146
ESRIArcGIS.Client.Toolkit - 3.0.0.146
 
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.
To consume WMS layers, we tried to install ‘ESRI.ArcGIS.Client.Toolkit.DataSources’ plug in from Nuget Package Manager. It resulted in below errors.
 
1. Install-Package : Unable to find package 'ArcGISSilverlight-ToolkitDataSources'.
At line:1 char:16
+ Install-Package <<<<  ArcGISSilverlight-ToolkitDataSources
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
2. Tried to run the command  ‘Install-Package ArcGISSilverlight-All -Version 3.3.0.33’
which was found in link given below
 
Install failed. Rolling back...
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
atible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<<  ArcGISSilverlight-All -Version 3.3.0.33
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
 
3. Tried to add  ‘ESRI.ArcGIS.Client.Toolkit.DataSources’ which was found in a sample code in  Git Hub
Got following error.
Error    4    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'    e:\New folder\arcgis-samples-silverlight-master\src\ArcGISSilverlightSDK\Bin\Debug\ESRI.ArcGIS.Client.Toolkit.DataSources.dll
 
 
As the above plug-in is not supporting, is there any other plug-in / version of the plug-in that supports WMS layers?
OR
Is there any alternate solution available to implement WMS layers with Silverlight in my web application?

Outcomes