<?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: How do you reference the proxy.ashx page? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549855#M51227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, an example is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/routetask_directions.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/routetask_directions.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is your call inside a dojo.addOnLoad call like dojo.addOnLoad(init);?&amp;nbsp; If not the esri namespace may not be loaded yet and it could be a timing issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2011 15:21:22 GMT</pubDate>
    <dc:creator>HaroldBostic</dc:creator>
    <dc:date>2011-08-15T15:21:22Z</dc:date>
    <item>
      <title>How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549852#M51224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there. I've got some secured ArcGIS Services that require a token.&amp;nbsp; I've got my proxy.ashx and proxy.config pages in place and configured. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last thing I need to do is figure out how to get my JS/HTML pages to reference those proxy pages and pass the token to the services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone could please post some code or point me to an example, I'd be tremendously grateful.&amp;nbsp; The info at &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm&lt;/A&gt;&lt;SPAN&gt; wasn't helpful because my pages don't have a code-behind page for the C# code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a million in advance!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549852#M51224</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-09T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549853#M51225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, if you are using a proxy page and the JSAPI .&amp;nbsp; In your JS code, sometime prior to making a request from a service you would set esri.config.defaults.io.proxyUrl&amp;nbsp; to the url of your ashx page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the examples from your link are for use inside your JS code,&amp;nbsp; They just demonstrate how you would call your proxy page based on your server side implementation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In side your ashx page would reside the secured urls and the token generated from the getToken rest endpoint that can access those service(s), no need to pass the token to your services as the proxy will do the authentication on your behalf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 04:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549853#M51225</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-10T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549854#M51226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your answer.&amp;nbsp; I've added the following code to my web page: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.proxyUrl = "proxy.ashx";&amp;nbsp; // that is the correct path&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I'm getting the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Webpage error details&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Timestamp: Mon, 15 Aug 2011 15:32:56 UTC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message: 'esri.config.defaults' is null or not an object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like I need to add a reference somewhere.&amp;nbsp; Can anyone point me in the right direction?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 14:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549854#M51226</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-15T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549855#M51227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, an example is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/routetask_directions.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/routetask_directions.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is your call inside a dojo.addOnLoad call like dojo.addOnLoad(init);?&amp;nbsp; If not the esri namespace may not be loaded yet and it could be a timing issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549855#M51227</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-15T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549857#M51229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what happens when you go to this url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://PathToYourProxy/prox.ashx?http://servername/ArcGIS/rest/services/Cadaster/CadasterLayerHalfTransparent/MapServer"&gt;http://PathToYourProxy/prox.ashx?http://servername/ArcGIS/rest/services/Cadaster/CadasterLayerHalfTransparent/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;h&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://PathToYourProxy/prox.ashx" rel="nofollow" target="_blank"&gt;http://PathToYourProxy/prox.ashx&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://google.com"&gt;http://google.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 00:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549857#M51229</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-16T00:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549860#M51232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the version of VS and .Net framework you are working with ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where have you deployed your proxy files ? Do you have read/execute permissions to that folder ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549860#M51232</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2011-08-16T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549861#M51233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens when you go to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://PathToYourProxy/prox.ashx?http://www.google.com"&gt;http://PathToYourProxy/prox.ashx?http://www.google.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot the www in my last reply&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 16:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549861#M51233</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-16T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549863#M51235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the domain name should not matter as my domain name has multiple dots.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have an&amp;nbsp; unsecured service on that same server that you can test your proxy page with?&amp;nbsp; If not, can you turn off ArcGISServer security and test that you can access your services?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, turn back on security and....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you go to your token url generator and ensure that the uname and pwd you are using can in fact generate a token for that service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can verify this by browsing to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://Server.Name.com/ArcGIS/rest/services/cadaster/ServiceName/MapServer?token=YourTokenGoesHere"&gt;http://Server.Name.com/ArcGIS/rest/services/cadaster/ServiceName/MapServer?token=YourTokenGoesHere&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if successful.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The next step would to remove the dynamic token generation from your proxy config, and use the static one and try to access your service through your browser using the proxy as you did before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you need more clarification for any of the steps above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 19:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549863#M51235</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-16T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549865#M51237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.config.defaults.io.proxyUrl = "../proxy.ashx"; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Change the URL to a complete server URL : &lt;A href="http://servername/proxy.ashx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://servername/proxy.ashx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://Server.Name2.com/ArcGIS/rest/services/cadaster/ServiceName/MapServer"
&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Change the URL above to &lt;A href="http://ServerName/ArcGIS/rest" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ServerName/ArcGIS/rest&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See if above helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549865#M51237</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2021-12-11T23:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549866#M51238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In that&amp;nbsp; case you must generate the token using the ip address of the server in which the proxy resides rather than the url.&amp;nbsp; i.e. the ip is the referer that should be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new token should work inside the proxy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 22:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549866#M51238</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-16T22:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549868#M51240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you go to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://Server.Name/ArcGIS/tokens/gettoken.html"&gt;http://Server.Name/ArcGIS/tokens/gettoken.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you get the screen like the attached, do you create the token using the ip address of Server.Name?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549868#M51240</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-17T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549869#M51241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, is this an externally facing server?&amp;nbsp; If so, do you have a reverse proxy set up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549869#M51241</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-17T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549870#M51242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;When you go to &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://Server.Name/ArcGIS/tokens/gettoken.html"&gt;http://Server.Name/ArcGIS/tokens/gettoken.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And you get the screen like the attached, do you create the token using the ip address of Server.Name?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the server name, not the IP address. I also get the following error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Secure connection (SSL) required.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have access to an SSL certificate.&amp;nbsp; Is that a requirement?&amp;nbsp; Sorry if that's a dumb question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 19:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549870#M51242</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-17T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549871#M51243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have only gotten my proxy to work when I use the ip address of the server that the proxy resides I never gotten the proxy page to work with the server name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a potential resource&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Configuring_the_Token_Service/00040000002w000000/GUID-BFE40BF6-0654-4334-9203-E62C4DD5B8F3/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Configuring_the_Token_Service/00040000002w000000/GUID-BFE40BF6-0654-4334-9203-E62C4DD5B8F3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How were you generating your token previously?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can check out this link, where it shows you how to set the RequireSSL flag, you would set yours to false after reading about how this is only recommended in a dev environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Configuring_the_Token_Service/00040000002w000000/GUID-BFE40BF6-0654-4334-9203-E62C4DD5B8F3/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Configuring_the_Token_Service/00040000002w000000/GUID-BFE40BF6-0654-4334-9203-E62C4DD5B8F3/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 20:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549871#M51243</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-17T20:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549872#M51244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, is this an externally facing server?&amp;nbsp; If so, do you have a reverse proxy set up?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes to both of those.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disabled the requirement for SSL, by the way.&amp;nbsp; I can now generate a token that's supposed to be good for 10 days.&amp;nbsp; The problem is that the tokens being generated that way don't work.&amp;nbsp; They're very long tokens and maybe that's the problem(?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only tokens that work are the ones generated the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I go to the URL of one of the restricted services (&lt;/SPAN&gt;&lt;A href="http://Server.Name2.com/ArcGIS/rest/services/cadaster/AboriginalUseArea/MapServer"&gt;http://Server.Name2.com/ArcGIS/rest/services/cadaster/AboriginalUseArea/MapServer&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I click on the link for viewing the ArcGIS JavaScript map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I go to "View Source" and find the token that gets generated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 15:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549872#M51244</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-18T15:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549873#M51245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saurabh - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any chance that you or someone at ESRI could check out this problem with your remote desktop tools?&amp;nbsp; I've experimented with every possible combination of proxy.config settings using server names and IP addresses.&amp;nbsp; The manually generated tokens and the proxy pages are not working.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm completely stumped and I really need the ability to display secured services in web maps.&amp;nbsp; If there's anything you can do to help me, I'd sure appreciate it.&amp;nbsp; Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 20:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549873#M51245</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-18T20:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549874#M51246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're still having problems and need to contact Support the number is 888-377-4575 or you can use the Online My Support tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/"&gt;http://support.esri.com/en/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug Carroll, ESRI Support Services SDK Team&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/"&gt;http://support.esri.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 20:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549874#M51246</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-08-18T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549875#M51247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Doug.&amp;nbsp; I already have an open ticket for this issue. Saurabh has been working on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 21:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549875#M51247</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2011-08-18T21:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549876#M51248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, please ensure you are using the ip address that you get when ping'ing from outside your internal network.&amp;nbsp; Ping your Server.Name.com url from outside your network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try that and it still does not work, and ESRI does not help, let me know and I'll contact you offline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549876#M51248</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-08-19T04:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reference the proxy.ashx page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549856#M51228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, Harold.&amp;nbsp; I think I'm closer to getting there but my code still isn't retrieving a token from the proxy page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the JavaScript code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.ContentPane");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.BorderContainer");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function Init() {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.config.defaults.io.proxyUrl = "../proxy.ashx"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style(dojo.byId("map"), { width: dojo.contentBox("map").w + "px", height: (esri.documentBox.h - dojo.contentBox("navTable").h - 40) + "px" });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new esri.Map("map");
&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; var CountyDataLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servername/ArcGIS/rest/services/Counties/MapServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(CountyDataLayer);

// the following service requires a token:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var RestrictedLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servername/ArcGIS/rest/services/Cadaster/CadasterLayerHalfTransparent/MapServer");

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(RestrictedLayer);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resizeTimer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, 'onLoad', function(theMap) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', function() {
&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; clearTimeout(resizeTimer);
&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; resizeTimer = setTimeout(function() {
&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;&amp;nbsp; map.resize();
&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;&amp;nbsp; map.reposition();
&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; }, 500);
&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; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.addOnLoad(Init);
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and here's the code from the proxy.ashx page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.
&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; mustMatch: true to only proxy to sites listed, false to proxy to any site --&amp;gt;
&amp;lt;ProxyConfig mustMatch="true"&amp;gt;
&amp;nbsp; &amp;lt;serverUrls&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- serverUrl options:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = location of the ArcGIS Server, either specific URL or stem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = true to forward any request beginning with the url
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = (optional) token to include for secured service
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken = if true, gets token dynamically with username and
&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; password stored in this file.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = the secured user's username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password = the password for the username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host = the machine name that is hosting the map service
&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://servername/ArcGIS/rest/services/Cadaster/CadasterLayerHalfTransparent/MapServer"
&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;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; dynamicToken="true"
&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; host="servername"
&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; userName="UserName"
&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; password="ValidPassword"&amp;gt;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://www.google.com"
&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;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp; &amp;lt;/serverUrls&amp;gt;
&amp;nbsp; 
&amp;lt;/ProxyConfig&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get no errors now.&amp;nbsp; I'm still not getting the service that requires a token though....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-reference-the-proxy-ashx-page/m-p/549856#M51228</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2021-12-11T23:47:12Z</dc:date>
    </item>
  </channel>
</rss>

