I am using https mapservices in esri legend control. Our https site works in Firefox perfectly, but in IE we got this prompt displayed. It may because of images in the esri legend control are using http url[ATTACH=CONFIG]16977[/ATTACH]
To enable mixed content in IE9 you can change the security settings :
In Internet Explorer, click the Tools button, and then click Internet Options.
Click the Security tab, and then click the Custom Level button.
In the Security Settings dialog box, scroll to the Display mixed content setting in the Miscellaneous section, and then click Enable.
Click OK in the Security Settings dialog box, and then click OK to exit Internet Options.
That being said, it's strange you get this message with the legend. From ArcGIS 10SP1, the legend is provided by the map service and the legend images are encapsulated in the json answer.
Which ArcGIS server version are you using?
To better understand what happens, I suggest you use fiddler to look at the requests sent to the server.
It includes "http" and "https" which is caused IE to popup this prompt " Display mixed content". The legend control from Esri has http but my service has https.
You are right to change setting in IE. but It would be nearly impossible to tell everyone to make these changes for their own browsers.
Please let me know if am wrong. If i am right, any work around to solve this?
You are right to change setting in IE. but It would be nearly impossible to tell everyone to make these changes for their own browsers.
Please let me know if am wrong. If i am right, any work around to solve this?
The easiest way would be to migrate the server to 10SP1 or 10.1. But probably not easy either.
Else I don't think the legend control can work with the secured arcgis.com REST end point. You could adapt the legend control by yourself (should not be that difficult). Source code is here :http://esrisilverlight.codeplex.com/