# Need help with ArcGISServerRestLayer

**URL:** <https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941>\
**Category:** WinForms\
**Created:** [February 12, 2018, 7:37pm UTC](https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941 "2018-02-12T19:37:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [February 12, 2018, 7:37pm UTC](https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941/1 "2018-02-12T19:37:21Z")

</div>

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](https://community.thinkgeo.com/uploads/default/original/3X/5/c/5cf56040c0b8f1ceda573e1998aaca72b90017d3.zip) (23.9 KB)

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [February 13, 2018, 8:06am UTC](https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941/2 "2018-02-13T08:06:13Z")

</div>

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:

 ![](https://community.thinkgeo.com/uploads/default/original/3X/0/8/08950030fd99772589aa12f83850db0a21e18eb6.png)

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [February 13, 2018, 2:52pm UTC](https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941/3 "2018-02-13T14:52:24Z")

</div>

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?

Thanks!

Steve

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [February 14, 2018, 1:16am UTC](https://community.thinkgeo.com/t/need-help-with-arcgisserverrestlayer/8941/4 "2018-02-14T01:16:58Z")

</div>

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.

Regards,

Ethan
