Hi,
I would like to use ArcGISServerRestLayer. I have reproduced the ThinkGeo sample and it works fine. However I have not been able to connect to any other REST servers. I have attached a sample that shows what I am trying to do. Can you tell me what I am doing wrong?
Thanks!
Steve
ArcGisRestServerLayer.zip (23.9 KB)
Hi Steven,
Please modify your code from
arcGisLayer.Parameters.Add("layers", "show:1,2")
to
arcGisLayer.Parameters.Add("layers", "show:0")ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls12 Or SecurityProtocolType.Tls Or SecurityProtocolType.Ssl3
And it should works:
Regards,
Ethan
Ethan,
Works great!
So now I have a couple more questions.
How do you know, in advance, what security protocols to use?
Is there a way to determine, in advance, what layers are available?
Hi Steve,
In fact I don't know which protocols is used, I just search on internet and found this solution for this exception. It looks choose any protocol can make it works.