Hi Users,
i am trying to configure the proxy but its giving me error.
{error: {code: 500,message:"Unable to connect to the remote server http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson"}}
At the same time if I uses http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson, it gives me result.
Following is my proxy.
<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="true">
<serverUrls>
<serverUrl url="http://services.arcgisonline.com"
matchAll="true"/>
<serverUrl url="https://xxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_2D_SHELL/MapServer"
matchAll="true"/>
<serverUrl url="https://xxxxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_3D/MapServer"
matchAll="true"/>
<serverUrl url="https://xxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer"
matchAll="true"/>
<serverUrl url="https://xxxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer/3"
matchAll="true"/>
</serverUrls>
</ProxyConfig>
The version of .NET used is 4.0.
I am using TOC widget in my application and here I can see the esri data coming in my TOC widget but for rest its giving error
Unable to load http://www.arcgis.com/sharing/tools…bal/2D_GE_GSI_2D_SHELL/MapServer&f=json
{"error":{"code":500,"message":"Unable to generate legends: Unable to update legend cache, invalid input parameters"}}
I am suspecting it to be a proxy issue.
Please help me on this.
Thanks
Aditya Kumar
Having the same issue. Latest version of the proxy on IIS 8.5.
http://myserver/proxy/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson returns a 500, but I can connect to the URL directly from myserver or from the client.
http://myserver/proxy/proxy.ashx?ping returns:
{ "Proxy Version": "1.1.0", "Configuration File": "OK", "Log File": "Not Exist/Readable"}
IIS log:
2016-03-01 20:45:26 10.128.36.49 GET /proxy/proxy.ashx http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson 80 - 10.139.158.218 Mozilla/5.0+(Windows+NT+6.1;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/49.0.2623.64+Safari/537.36 - 500 0 0 21893
Michael,
Is http://services.arcgisonline.com added to your proxy.config as one of the serverUrls?