<?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: Authentication error with .Net resource proxy in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/authentication-error-with-net-resource-proxy/m-p/661655#M32990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cross-posting this to &lt;A href="https://community.esri.com/space/2128"&gt;ArcGIS API for JavaScript&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/space/2030"&gt;Developer Communities&lt;/A&gt;‌.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2020 21:47:24 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-03-20T21:47:24Z</dc:date>
    <item>
      <title>Authentication error with .Net resource proxy</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/authentication-error-with-net-resource-proxy/m-p/661654#M32989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an application which is built using Web App Builder and it uses the ESRI resource proxy (.Net latest version 1.1.2) to access ArcGIS Online and other URL's accessible on internet.&lt;/P&gt;&lt;P&gt;The proxy application has been setup in IIS with anonymous authentication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pinged the proxy and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;A href="https://iewcdgis07.scet.eixt.com/DotNetProxy/proxy.ashx?ping"&gt;https://[server]/[proxyname]/proxy.ashx?ping&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Initially, I tried accessing ArcGIS Online URL via the proxy without making any changes in proxy config or application: &lt;/SPAN&gt;&lt;A href="https://iewcdgis07.scet.eixt.com/DotNetProxy/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"&gt;https://[server]/[proxyname]/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt;{"error": {"code": 403,"message":"Proxy has not been set up for this URL. Make sure there is a serverUrl in the configuration file that matches: &lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&lt;/A&gt; &lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json%22%7d"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"}&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;This means that the error message was coming from proxy application only as it mentioned “serverUrl” parameter. Now by default the following rule is already present in the default version of proxy.config&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;lt;serverUrl url="&lt;A href="http://services.arcgisonline.com"&gt;http://services.arcgisonline.com&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Still the above error message for “ServerUrl” came. So I added another “ServerUrl” as given below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;lt;serverUrl url="&lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I didn’t mention any user or password or domain. Now I got the following error while trying to access AGOL URL via proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: black;"&gt;{"error": {"code": 500,"message":"Unable to connect to the remote server &lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json%22%7d"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"}&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;This suggests that proxy application is unable to access internet. So now I changed the following line in proxy.ashx to use&amp;nbsp;our organization proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;private static System.Net.IWebProxy SYSTEM_PROXY = new WebProxy("[Our organization proxy PAC file]",true); //System.Net.HttpWebRequest.DefaultWebProxy; // Use the default system proxy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;After I did this change the AGOL URL was accessible via proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;However after some time when I tried to access same URL:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json"&gt;https://[server]/[proxyname]/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Getting this error (In Chrome)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; "&gt;This site can’t be reached&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; "&gt;The webpage at https://[server]/[proxyname]/proxy.ashx?https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json might be temporarily down or it may have moved permanently to a new web address.&lt;BR /&gt;ERR_UNEXPECTED_PROXY_AUTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Error in IE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; "&gt;You must be authenticated by a proxy before the Web server can process your request.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Why is this happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operating System is Windows Server 2016.&lt;/P&gt;&lt;P&gt;IIS version is 10.&lt;/P&gt;&lt;P&gt;ArcGIS Server, Portal for ArcGIS version is 10.7.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Apurv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/authentication-error-with-net-resource-proxy/m-p/661654#M32989</guid>
      <dc:creator>ApurvDanke</dc:creator>
      <dc:date>2019-12-27T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error with .Net resource proxy</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/authentication-error-with-net-resource-proxy/m-p/661655#M32990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cross-posting this to &lt;A href="https://community.esri.com/space/2128"&gt;ArcGIS API for JavaScript&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/space/2030"&gt;Developer Communities&lt;/A&gt;‌.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2020 21:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/authentication-error-with-net-resource-proxy/m-p/661655#M32990</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-20T21:47:24Z</dc:date>
    </item>
  </channel>
</rss>

