Tiled map service over HTTPS ignored by Silverlight API

686
1
05-04-2011 10:12 AM
NathanielWingfield
New Contributor II
I am struggling to get a tiled map service running over HTTPS, using an ArcGISTiledMapServiceLayer. The REST API works just fine over HTTPS, but Silverlight is not playing nicely with it. Whether using HTTP or HTTPS, the Silverlight component succeeds in calling:

http(s)://MyServer/ArcGIS/rest/services/MyService/MapServer?f=json

...and Fiddler shows valid JSON returned.

Under HTTPS, however, no subsequent calls are made to:

https://MyServer/ArcGIS/rest/services/MyService/MapServer/tile/...

...and Silverlight raises no exception.

In contrast, I have no difficulty whatsoever with a Silverlight FeatureLayer over HTTPS.

I should mention that my ArcGISTiledMapServiceLayer.InitializationFailed event handler is never invoked.

Any suggestions?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Are you able to go to your map service from the web browser using the same URL that you provide in ArcGISTiledMapServiceLayer? Please also try to wire up to Initialized event and check for failure using the following code.

Layer l = sender as Layer;
if (l.IsInitialized || l.InitializationFailure != null)
{
 //check for failure.
}


Have you looked at this blog post? http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
0 Kudos