Opening my maps from ArcGIS online account in ArcGIS Viewer for Silverlight

379
3
03-16-2013 07:55 AM
MonikaHonkova1
New Contributor
Hello,
can anyone help me with opening my maps I saved on my ArcGIS online account? When I launch ArcGIS Viewer for Silverlight and I sing in to my ArcGIS online Account I can see my maps but I can't open them. It fires an error:
Cannot perform runtime binding on a null reference
Details:

at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure , CallSite , Object )
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IList list, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, StringWriter sw, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.ExtensionMethods.ToJson(IDictionary dictionary, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.LayerExtensions.GenerateFeatureCollectionJson(FeatureLayer layer, Boolean humanReadable)
   at ESRI.ArcGIS.Mapping.Core.FeatureLayerXamlWriter.WriteFeatureLayer(FeatureLayer layer)
   at ESRI.ArcGIS.Mapping.Core.FeatureLayerXamlWriter.WriteElementContents(Layer layer)
   at ESRI.ArcGIS.Mapping.Core.LayerXamlWriter.WriteLayer(Layer layer, String layerName, String layerNamespace)
   at ESRI.ArcGIS.Mapping.Core.MapXamlWriter.MapToXaml(Map map)
   at ESRI.ArcGIS.Mapping.Controls.MapCenter.GetMapXaml(MapEventArgs e)
   at ESRI.ArcGIS.Mapping.Builder.NewApplicationControl.MapCenter_MapSelectedForOpening(Object sender, MapEventArgs e)
   at ESRI.ArcGIS.Mapping.Controls.MapCenter.Document_GetMapCompleted(Object sender, GetMapCompletedEventArgs e)
   at ESRI.ArcGIS.Client.WebMap.Document.RaiseGetMapCompleted(ItemInfo info, Exception error, Map map, SpatialReference sref, TimeProperties timeProperties, WebMap webMap, Object userToken)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClass8.<>c__DisplayClassb.<GetMapAsync>b__7(Map map, SpatialReference sref, TimeProperties timeProperties, WebMap webMap, Exception error)
   at ESRI.ArcGIS.Client.WebMap.Document.SetMapExtent(Envelope extent, Map map, SpatialReference sref, TimeProperties timeProperties, WebMap webMap, Exception error, Action`5 complete)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClass18.<GetMapInternal>b__17(Map map, SpatialReference sref, TimeProperties timeProperties, WebMap webMap, Exception error)
   at ESRI.ArcGIS.Client.WebMap.Document.SetMapExtent(Envelope extent, Map map, SpatialReference sref, TimeProperties timeProperties, WebMap webMap, Exception error, Action`5 complete)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClass2f.<>c__DisplayClass32.<GetMapFromWebMap>b__2d()
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClasse.<CheckMapServiceItems>b__d()
   at ESRI.ArcGIS.Client.WebMap.Document.GetMapServiceItem(Layer layer, Action callback)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClasse.<CheckMapServiceItems>b__d()
   at ESRI.ArcGIS.Client.WebMap.Document.GetMapServiceItem(Layer layer, Action callback)
   at ESRI.ArcGIS.Client.WebMap.Document.CheckMapServiceItems(Map map, Action callback)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClass2f.<GetMapFromWebMap>b__2c(Map map, SpatialReference sref, TimeProperties time, WebMap webMap2, Exception error)
   at ESRI.ArcGIS.Client.WebMap.Document.<>c__DisplayClass2f.<GetMapFromWebMap>b__2e(Object s, MapConfigurationLoadedEventArgs e)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass6.<LoadOperationalLayers>b__5(LayerCollection result, SpatialReference sref2)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessLayerStack(Queue`1 stack, LayerCollection layers, SpatialReference sref, Action`2 onComplete)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClassa.<ProcessLayerStack>b__8(SpatialReference sr)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass13.<ProcessLayer>b__11()
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessFeatureCollectionLayers(Queue`1 subLayerStack, GroupLayer featureCollectionLayers, WebMapLayer webMapLayer, Int32 subLayerID, Action callback)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass21.<ProcessFeatureCollectionLayers>b__1e()
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass2e.<SetFeatureLayerPopup>b__29(Object sender, EventArgs e)
   at ESRI.ArcGIS.Client.Layer.OnInitialized(EventArgs e)
   at ESRI.ArcGIS.Client.Layer.Initialize()
   at ESRI.ArcGIS.Client.FeatureLayer.Initialize()
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.SetFeatureLayerPopup(PopupInfo popupInfo, FeatureLayer featureLayer, Action callback)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessFeatureCollectionLayers(Queue`1 subLayerStack, GroupLayer featureCollectionLayers, WebMapLayer webMapLayer, Int32 subLayerID, Action callback)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessLayer(WebMapLayer webMapLayer, LayerCollection layers, SpatialReference sref, Action`1 onComplete)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessLayerStack(Queue`1 stack, LayerCollection layers, SpatialReference sref, Action`2 onComplete)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.LoadLayers(IEnumerable`1 webMapLayers, Action`2 onComplete, SpatialReference sref)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.LoadOperationalLayers(WebMap webMap, LayerCollection layers, SpatialReference sref)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass3.<LoadBaseMapLayers>b__0(LayerCollection result, SpatialReference sref)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.ProcessLayerStack(Queue`1 stack, LayerCollection layers, SpatialReference sref, Action`2 onComplete)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClassa.<ProcessLayerStack>b__8(SpatialReference sr)
   at ESRI.ArcGIS.Client.WebMap.MapConfiguration.<>c__DisplayClass1a.<DeserializeLayer>b__15(Layer layer, SpatialReference sr)
   at ESRI.ArcGIS.Client.WebMap.Serializers.Layers.ArcGISSerializer.<>c__DisplayClassf.<Deserialize>b__d(Object s, RequestEventArgs e)
   at ESRI.ArcGIS.Client.WebRequest.OnComplete(RequestEventArgs args)
   at ESRI.ArcGIS.Client.WebRequest.downloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e, Action retryCallback)
   at ESRI.ArcGIS.Client.WebRequest.<>c__DisplayClass1d.<BuildClient>b__1b(Object s, DownloadStringCompletedEventArgs e)
   at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
   at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)

Thanks for a help
0 Kudos
3 Replies
MattiaCugini
New Contributor II
I'm experiencing the same kind of error, anyone know a possibile solution?

Thank you
0 Kudos
DebraParthree
New Contributor II
I'm having the same problem.  Does it have something to do with naming the server when installing the software?
0 Kudos
JosephMootz1
Occasional Contributor
I have the same problem with the "Cannot perform runtime binding on a null reference" and same "at CallSite.Target(Closure , CallSite , Object )..." details.

I have one map on ArcGIS Online that the Silverlight Builder app will download and work with fine. But if I try to make a new map or make a copy of the map that works on ArcGIS online and add layers to it I get the error. I have maps on ArcGIS Online that work fine with ArcGIS Viewer for Flex Builder but get the error with the Silverlight version.

I have reinstalled ArcGIS viewer for Silverlight with same results.

I tried creating an app in the Silverlight builder and adding my good map. Then if I unlink this map, make changes on ArcGIS Online and then relink in the Silverlight builder, the builder recognizes the changes. However, when I try to deploy the app, I get the same "Cannot perform runtime binding on a null reference" error.

If anyone has a fix for this, please let us know. I like the Silverlight capabilities a little more than the Flex if it will work consistently.

Thank you.
0 Kudos