Select to view content in your preferred language

load secure WebMap

940
5
04-19-2013 08:32 AM
JayKappy
Frequent Contributor
Trying to reference this code example

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LoadSecureWebMap

Have a few questions.

1. Do I remove the Token and URL below?
2. Does the code example then automatically apply all call the the web service to the created Token?

Currently
esri:ArcGISDynamicMapServiceLayer ID="AddressPoints"
           Token="aKZF72nfIe9_HBjlavn2ScviydDqVAeY5xyx-t58026uhH6"                                                       
           Url="https://arcgis/rest/services/Grove/User__FS/MapServer"
           Initialized="AddressPoints_Initialized"/>

Can someone explain a bit more how this is working and what i have to do to implement it.....
Thanks
0 Kudos
5 Replies
JayKappy
Frequent Contributor
Additionally having issues with this reference...cant find it in the ADD REFERENCE

Imports ESRI.ArcGIS.Client.WebMap

Errors
Warning 1 Namespace or type specified in the Imports 'ESRI.ArcGIS.Client.WebMap' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Error 2 Type 'Document' is not defined.
Error 3 Type 'GetMapCompletedEventArgs' is not defined.


One more issue...Just started seeing this warning....it is ok or should this be addressed as well....
Warning 4 'ESRI.ArcGIS.Client.ValueConverters.DictionaryConverter' is obsolete.

SORRY for the loaded questions but think they all play off each other....

Thanks
0 Kudos
JustinHunter
Regular Contributor
What version of .NET is your project set to? I've only seen this (not specifically ArcGIS, but other libraries) when you're project's version is set to lower than the assembly that's referenced.
0 Kudos
JayKappy
Frequent Contributor
Sorry for the stupid question...where do I find that?
I see its Silverlight 4

I tried to create New Project and it defaults to .Net Framework 4

Trying to download and install 4.0.3...will this mess existing stuff up....will it apply 4.0.3 to my current projects?
0 Kudos
JayKappy
Frequent Contributor
My question is that this is an ESRI reference....I dont think that would be in the .Net framework from Microsoft would it?

Imports ESRI.ArcGIS.Client.WebMap

What do I need to update to get this reference?

Would it be a newer version of ArcGIS runtime for Silverlight?  Or something like that?
0 Kudos
JayKappy
Frequent Contributor
I updated to new ArcGIS api for silverlight 3.0

My previous errors are now gone but a new one has presented itself....

Error 2 The project currently contains references to more than one version of ESRI.ArcGIS.Client, a direct reference to version 2.0.0.314 and an indirect reference (through 'ESRI.ArcGIS.Client.WebMap.GetMapCompletedEventArgs.Map') to version 10.1.1.0. Change the direct reference to use version 10.1.1.0 (or higher) of ESRI.ArcGIS.Client.

It points to this line of code: highlighting e.map

LayoutRoot.Children.Insert(0, e.Map)

Any thoughts?
0 Kudos