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