<?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: Print Task and Proxy page in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655302#M61113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sounds like the space itself isn't a problem, but for some reason some (or all?) requests to internal resources fail.&amp;nbsp; does that sound like an accurate assessment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if so, my first suggestion would be to logon to the server machine and see if you can access those resources directly in the browser.&amp;nbsp; if so, it might be worth asking for IT help to create a new application pool for the proxy and assign it to utilize a different identity so that you could use a tool like fiddler to inspect the actual web traffic the proxy is spawning to the resource itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 18:17:16 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2014-02-04T18:17:16Z</dc:date>
    <item>
      <title>Print Task and Proxy page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655299#M61110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I seem to have the opposite problem from most posts that I have seen on this issue.&amp;nbsp; If I use a proxy page with my PrintTask - it fails.&amp;nbsp; If I set "alwaysUseProxy" to false - it works as expected.&amp;nbsp; When I execute the task with the proxy page, it throws a 500 error immediately. The PrintTask will eventually return a timeout error to the client.&amp;nbsp; Proxy page works fine with all the map services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655299#M61110</guid>
      <dc:creator>BryanLynn</dc:creator>
      <dc:date>2014-02-04T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task and Proxy page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655300#M61111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this is just a guess, but i've seen proxy pages that threw up when they encountered spaces in the url of the resource they are attempting to forward.&amp;nbsp; this is relevant because the out of the box print task includes the operation name 'Export Web Map Task'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what happens when you try and ping the url below directly in the browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost/yourproxy.ashx?http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"&gt;http://localhost/yourproxy.ashx?http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655300#M61111</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-04T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task and Proxy page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655301#M61112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, that makes sense but now I am a little confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following link to your site brings back the REST API page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://test2.kgis.org/proxy/proxy.ashx?http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"&gt;http://test2.kgis.org/proxy/proxy.ashx?http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following link to our site brings backa 500 ProtocolError and the body of the page simply says "System.Net.HttpWebResponse"&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://test2.kgis.org/proxy/proxy.ashx?http://test2.kgis.org/arcgis/rest/services/PrintingTools/PrintTask2/GPServer/Export%20Web%20Map"&gt;http://test2.kgis.org/proxy/proxy.ashx?http://test2.kgis.org/arcgis/rest/services/PrintingTools/PrintTask2/GPServer/Export%20Web%20Map&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my mind, if the problem is with the proxy page, shouldn't it have returned the error for both links?&amp;nbsp; By no means do I think our proxy page is error free, it just seems odd to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 18:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655301#M61112</guid>
      <dc:creator>BryanLynn</dc:creator>
      <dc:date>2014-02-04T18:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task and Proxy page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655302#M61113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sounds like the space itself isn't a problem, but for some reason some (or all?) requests to internal resources fail.&amp;nbsp; does that sound like an accurate assessment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if so, my first suggestion would be to logon to the server machine and see if you can access those resources directly in the browser.&amp;nbsp; if so, it might be worth asking for IT help to create a new application pool for the proxy and assign it to utilize a different identity so that you could use a tool like fiddler to inspect the actual web traffic the proxy is spawning to the resource itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 18:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655302#M61113</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-04T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Print Task and Proxy page</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655303#M61114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info jgravois.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out John was correct the spaces in the URL were causing problems with my proxy page.&amp;nbsp; Essentially the spaces were being replaced with "+" characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the fix I used to get around it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (theUri.Contains("Export+Web+Map+Task")) &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; theUri = theUri.Replace("Export+Web+Map+Task", "Export%20Web%20Map%20Task"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 14:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-task-and-proxy-page/m-p/655303#M61114</guid>
      <dc:creator>BryanLynn</dc:creator>
      <dc:date>2014-02-18T14:01:34Z</dc:date>
    </item>
  </channel>
</rss>

