Select to view content in your preferred language

ArcGIS Proxy .NET error 500

2187
1
04-22-2016 06:11 AM
DEVAPP
by
Occasional Contributor

Hi at all.

I have develop a custom JS application and i'm using a proxy to read the basemap arcgis online.

For this i have configured the proxy.config in this way:

<?xml version="1.0" encoding="utf-8" ?>

<ProxyConfig allowedReferers="*"

             mustMatch="true">

<serverUrls>

        <serverUrl url="https://services.arcgisonline.com/arcgis/rest"

         matchAll="true"/>

    </serverUrls>

</ProxyConfig>

but the proxy give me this error:

{error: {code: 500,message:"Unable to connect to the remote server https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tilemap/6/16/32/8/8&c..."}}

and the proxy request is this:

https://localhost/DotNet/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/World_Imag...

Any help please?

Thanks

Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Dev App,

You have https://services.arcgisonline.com/arcgis/rest​ in you proxy.config and then you are making a http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer

They are different protocols and thus not considered the same. Don't mix your protocols

And this is the serverUrl I use:

<serverUrl url="http://services.arcgisonline.com"

         matchAll="true"/>

No need to be specific with your url that is what the matchAll property is for.