I am developing with the Web Silverlight API. I have no problem generating the token required to view the USA Soils Units layer. However I am having security issues with the Query Task. I guess I assumed having the token for the layer was enough to execute the query task. Here is the code executing the query: Private Sub MyDrawSurface_DrawComplete(ByVal sender As Object, ByVal args As ESRI.ArcGIS.Client.DrawEventArgs) ResultsDisplay.Visibility = Visibility.Collapsed MyDrawObject.IsEnabled = False selectionGraphicslayer.Graphics.Clear() Dim queryTask As New QueryTask("http://http://landscape1.arcgis.com/arcgis/rest/services/USA_Soils/MapServer/0") AddHandler queryTask.ExecuteCompleted, AddressOf QueryTask_ExecuteCompleted AddHandler queryTask.Failed, AddressOf QueryTask_Failed queryTask.Token = "NbSci3CSDr8ShEb1EAuGw3ykma8u-Z9CmFnlf0EZ0CH2tR0sz3HhaIaLOyQFGmbqKuZV89jEMs0CiLkjlX0p7pMb7vgykCFtegR7EIuzgXv1DDbfEgahaeQX3FPGXk7NY85N4oVwWBGlop_gCTNwuA.." ' Bind data grid to query results Dim resultFeaturesBinding As New Binding("LastResult.Features") resultFeaturesBinding.Source = queryTask QueryDetailsDataGrid.SetBinding(DataGrid.ItemsSourceProperty, resultFeaturesBinding) Dim query As Query = New ESRI.ArcGIS.Client.Tasks.Query() ' Specify fields to return from query query.OutFields.AddRange(New String() {"mukind", "areasymbol", "aws025wta", "aws050wta", "aws0100wta", "aws0150wta"}) query.Geometry = args.Geometry ' Return geometry with result features query.ReturnGeometry = True query.OutSpatialReference = MyMap.SpatialReference queryTask.ExecuteAsync(query) End Sub Results in the following error message {System.Security.SecurityException ---> System.Security.SecurityException: Security error at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState) at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)} System.Exception I was able to execute the query form http://landscape1.arcgis.com/arcgis/rest/services/USA_Soils/MapServer/0/query
... View more