<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proxy giving error 500 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36910#M3055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that when you hit this url &lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: medium; font-family: 'Times New Roman'; color: #000000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2F%3Ff%3Dpjson" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: inherit; color: #287433;" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; directly on the browser, it works just fine. However, it does not work when you use it through the proxy. Did you try hitting this url using a browser on the server machine where the proxy is hosted? It looks like the server machine where the proxy is hosted is not able to communicate with the remote resource. This could happen if the firewall is blocking the communication or if there are any other network configurations that are blocking the communications with specific external urls.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 01:27:47 GMT</pubDate>
    <dc:creator>ArtemisFili</dc:creator>
    <dc:date>2016-01-21T01:27:47Z</dc:date>
    <item>
      <title>Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36909#M3054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Users,&lt;/P&gt;&lt;P&gt; i am trying to configure the proxy but its giving me error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN&gt;{error: {code: 500,message:"Unable to connect to the remote server &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2F%3Ff%3Dpjson" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&lt;SPAN&gt;"}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;At the same time if I uses &lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2F%3Ff%3Dpjson" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&lt;SPAN&gt;, it gives me result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 'Times New Roman';"&gt;Following is my proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fxxxxxxxxxxxx.com%2FArcGIS%2Frest%2Fservices%2FGlobal%2F2D_GE_GSI_2D_SHELL%2FMapServer" rel="nofollow" target="_blank"&gt;https://xxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_2D_SHELL/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fxxxxxxxxxxxxxx.com%2FArcGIS%2Frest%2Fservices%2FGlobal%2F2D_GE_GSI_3D%2FMapServer" rel="nofollow" target="_blank"&gt;https://xxxxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_3D/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fxxxxxxxxxxxxxx.com%2Farcgis%2Frest%2Fservices%2FGlobal%2F2D_DREAM_EPE%2FMapServer" rel="nofollow" target="_blank"&gt;https://xxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fxxxxxxxxxxxxxxx.com%2Farcgis%2Frest%2Fservices%2FGlobal%2F2D_DREAM_EPE%2FMapServer%2F3" rel="nofollow" target="_blank"&gt;https://xxxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer/3&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version of .NET used is 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unable to load &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fsharing%2Ftools%E2%80%A6bal%2F2D_GE_GSI_2D_SHELL%2FMapServer%26f%3Djson" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/sharing/tools…bal/2D_GE_GSI_2D_SHELL/MapServer&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;{"error":{"code":500,"message":"Unable to generate legends: Unable to update legend cache, invalid input parameters"}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am suspecting it to be a proxy issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36909#M3054</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-01-20T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36910#M3055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that when you hit this url &lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: medium; font-family: 'Times New Roman'; color: #000000;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2F%3Ff%3Dpjson" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: inherit; color: #287433;" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; directly on the browser, it works just fine. However, it does not work when you use it through the proxy. Did you try hitting this url using a browser on the server machine where the proxy is hosted? It looks like the server machine where the proxy is hosted is not able to communicate with the remote resource. This could happen if the firewall is blocking the communication or if there are any other network configurations that are blocking the communications with specific external urls.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 01:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36910#M3055</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2016-01-21T01:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36911#M3056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt; Thanks for the reply. I tried hitting the url on the server machine where the proxy is hosted and I am getting the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 08:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36911#M3056</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-01-21T08:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36912#M3057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is one more observation I would like to share with you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am adding this line&amp;nbsp; esriConfig.defaults.io.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmapserver1.XXX.com" rel="nofollow" target="_blank"&gt;https://mapserver1.XXX.com&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am uncommenting this line I cannot see the layer from my server and those layers are not even coming in my TOC widget but the default arcgis layers are coming.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="with_proxy.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/171526_with_proxy.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;And when I comment the layer, I can find my data on the screen but none of the layers are into TOC.&lt;IMG alt="without_proxy.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/171527_without_proxy.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;Hope this will help to understand the issue better.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 09:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36912#M3057</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-01-21T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36913#M3058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the request for the TOC is &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fsharing%2Ftools%E2%80%A6bal%2F2D_GE_GSI_2D_SHELL%2FMapServer%26f%3Djson" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;http://www.arcgis.com/sharing/tools…bal/2D_GE_GSI_2D_SHELL/MapServer&amp;amp;f=json &lt;/A&gt;&lt;SPAN&gt;​ so could it be that the server machine cannot access &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com" rel="nofollow" target="_blank"&gt;http://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is your javascript application hosted on the same web server with the proxy? This two should be side-by-side on the same server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 23:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36913#M3058</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2016-01-22T23:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36914#M3059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry for the late reply. &lt;/P&gt;&lt;P&gt;I added the print functionality to the map and the same issue is being faced there as well.&lt;/P&gt;&lt;P&gt;When proxy is active the&amp;nbsp; print is working else the print is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me the arcgis server is somewhere else.I am provided with the map service url and I am just consuming the.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 06:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36914#M3059</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-02-03T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36915#M3060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I cross checked again and its 100% proxy issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 10:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36915#M3060</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-02-04T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36916#M3061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt; I have put the application and the proxy at the same location but the problem still hold the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 06:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36916#M3061</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-02-26T06:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36917#M3062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the server &lt;A href="https://mapserver1.xxx.com/" title="https://mapserver1.xxx.com/"&gt;https://mapserver1.xxx.com/&amp;nbsp; CORS ena&lt;/A&gt;bled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue could be that the server is not CORS enabled so the proxy is required to bypass the cross domain limitation. But when you add&amp;nbsp; &lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;esriConfig.defaults.io.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmapserver1.XXX.com" rel="nofollow" style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;https://mapserver1.XXX.com&lt;/A&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;"); the proxy will not be used and as a result the layer will not show up because the cross domain request fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;If the server is not CORS enabled, you could try enabling CORS so that a cross domain request will be allowed without relying on a proxy page.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36917#M3062</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2016-02-26T18:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36918#M3063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having the same issue.&amp;nbsp; Latest version of the proxy on IIS 8.5.&lt;/P&gt;&lt;P&gt;&lt;A href="http://bn00arcgis001/proxy/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson" title="http://bn00arcgis001/proxy/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson"&gt;http://myserver/proxy/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&amp;nbsp; returns a 500, but I can connect to the URL directly from myserver or from the client.&lt;/P&gt;&lt;P&gt;&lt;A href="http://bn00arcgis001/proxy/proxy.ashx?ping" title="http://bn00arcgis001/proxy/proxy.ashx?ping"&gt;http://myserver/proxy/proxy.ashx?ping&lt;/A&gt; returns:&lt;/P&gt;&lt;P&gt;{ "Proxy Version": "1.1.0", "Configuration File": "OK", "Log File": "Not Exist/Readable"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIS log:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2016-03-01 20:45:26 10.128.36.49 GET /proxy/proxy.ashx &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2F%3Ff%3Dpjson" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/A&gt;&lt;SPAN&gt; 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&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36918#M3063</guid>
      <dc:creator>MichaelSchnack</dc:creator>
      <dc:date>2016-03-01T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36919#M3064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt; added to your proxy.config as one of the serverUrls?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36919#M3064</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-01T20:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy giving error 500</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36920#M3065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artemis,&lt;/P&gt;&lt;P&gt; I am yet to check if its CORS enabled. But we still need to use default services of ESRI like for print,geometry services which are not able to consume due to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 06:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-giving-error-500/m-p/36920#M3065</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2016-03-02T06:03:44Z</dc:date>
    </item>
  </channel>
</rss>

