<?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: Export Web Map Task Error: &amp;quot;Unable to connect to map server...&amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405613#M37369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sample with my printing tools &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/KZvyM/"&gt;http://jsfiddle.net/KZvyM/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;error on arcgis server log &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SEVERE 15.05.2013 14:15:04 Error executing tool. Print/PrintingServices.GPServer&lt;BR /&gt;SEVERE 15.05.2013 14:15:04 Layer "Ocean_Basemap_5301": Unable to connect to map server at &lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer&lt;/A&gt;. Layer "LOJIC_LandRecords_Louisville_3326": Unable to connect to map server at &lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer&lt;/A&gt;. Failed to execute (ExportWebMap). Failed to execute (Export Web Map). Print/PrintingServices.GPServer&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 07:17:18 GMT</pubDate>
    <dc:creator>AndyLarkin1</dc:creator>
    <dc:date>2013-05-15T07:17:18Z</dc:date>
    <item>
      <title>Export Web Map Task Error: &amp;amp;quot;Unable to connect to map server...&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405597#M37353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I receive this error anytime I try to print any base map from &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the base map from my code, it prints fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;(From Firebug console:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error executing tool.: Layer "layer0": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer&lt;/A&gt;&lt;SPAN&gt;. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a gut-feeling it has something to do with my server's proxy, but I'm not sure. &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;Here is the proxy I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;%@page session="false"%&amp;gt;
&amp;lt;%@page import="java.net.*,java.io.*" %&amp;gt;
&amp;lt;%!
String[] serverUrls = {
&amp;nbsp; //"&amp;lt;url&amp;gt;[,&amp;lt;token&amp;gt;]"
&amp;nbsp; //For ex. (secured server): "http://myserver.mycompany.com/arcgis/rest/services,ayn2C2iPvqjeqWoXwV6rjmr43kyo23mhIPnXz2CEiMA6rVu0xR0St8gKsd0olv8a"
&amp;nbsp; //For ex. (non-secured server): "http://sampleserver1.arcgisonline.com/arcgis/rest/services"
&amp;nbsp; "http://sampleserver1.arcgisonline.com/arcgis/rest/services",
&amp;nbsp; "http://***/arcgis/rest/services, username=***",// username=***
&amp;nbsp; "http://server.arcgisonline.com/ArcGIS/rest/services",
&amp;nbsp; "http://***/ArcGIS/rest/services, username=***&amp;amp;password=***",
&amp;nbsp; "http://servicesbeta4.esri.com/arcgis/rest/services/",
&amp;nbsp; "http://sampleserver2.arcgisonline.com/arcgis/rest/services" 
};
%&amp;gt;
&amp;lt;%
try {
&amp;nbsp; String reqUrl = request.getQueryString();
&amp;nbsp; boolean allowed = false;
&amp;nbsp; String token = null;
&amp;nbsp; for(String surl : serverUrls) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; String[] stokens = surl.split("\\s*,\\s*");
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(reqUrl.toLowerCase().contains(stokens[0].toLowerCase())) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowed = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(stokens.length &amp;gt;= 2 &amp;amp;&amp;amp; stokens[1].length() &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = stokens[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; if(!allowed) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; response.setStatus(403);
&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp; }
&amp;nbsp; if(token != null) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; reqUrl = reqUrl + (reqUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "token=" + token;
&amp;nbsp; }
&amp;nbsp; URL url = new URL(reqUrl);
 HttpURLConnection con = (HttpURLConnection)url.openConnection();
 con.setDoOutput(true);
 con.setRequestMethod(request.getMethod());
 if(request.getContentType() != null) {
&amp;nbsp;&amp;nbsp; con.setRequestProperty("Content-Type", request.getContentType());
 }
&amp;nbsp; con.setRequestProperty("Referer", request.getHeader("Referer"));
 int clength = request.getContentLength();
 if(clength &amp;gt; 0) {
&amp;nbsp; con.setDoInput(true);
&amp;nbsp; InputStream istream = request.getInputStream();
&amp;nbsp; OutputStream os = con.getOutputStream();
&amp;nbsp; final int length = 5000;
&amp;nbsp;&amp;nbsp; byte[] bytes = new byte[length];
&amp;nbsp;&amp;nbsp; int bytesRead = 0;
&amp;nbsp;&amp;nbsp; while ((bytesRead = istream.read(bytes, 0, length)) &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os.write(bytes, 0, bytesRead);
&amp;nbsp;&amp;nbsp; }
 }
&amp;nbsp; else {
&amp;nbsp;&amp;nbsp;&amp;nbsp; con.setRequestMethod("GET");
&amp;nbsp; }
 out.clear();
&amp;nbsp; out = pageContext.pushBody();
 OutputStream ostream = response.getOutputStream();
 response.setContentType(con.getContentType());
 InputStream in = con.getInputStream();
 final int length = 5000;
&amp;nbsp; byte[] bytes = new byte[length];
&amp;nbsp; int bytesRead = 0;
&amp;nbsp; while ((bytesRead = in.read(bytes, 0, length)) &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ostream.write(bytes, 0, bytesRead);
&amp;nbsp; }
} catch(Exception e) {
 response.setStatus(500);
}
%&amp;gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405597#M37353</guid>
      <dc:creator>AR</dc:creator>
      <dc:date>2021-12-11T18:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405598#M37354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@roessera here are some guidelines to help verify what's going on when a proxy doesn't seem to be working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Make sure you have the latest version of the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm" rel="nofollow"&gt;&lt;SPAN style="color: &amp;quot;#0000FF&amp;quot;; text-decoration: underline;"&gt;ArcGIS proxy&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Make sure that the Server URL properties are configured properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- If you are using tokens, follow the directions for the appropriate proxy (.jsp, ashx or php) for allowing tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Check the Proxy's web server log files. You may have to turn on full logging first. And, don't forget to disable full logging after you are done testing. If the proxy can't connect to ArcGIS Server you should be able to see an error in the web server log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- As a last resort, run an HTTP protocol analyzer on the proxy server, for example &lt;/SPAN&gt;&lt;A href="http://www.wireshark.org/" rel="nofollow"&gt;WireShark&lt;/A&gt;&lt;SPAN&gt;. This will let you see and analyze the inbound and outbound HTTP connections.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405598#M37354</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-04T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405599#M37355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that our network uses a proxy to access the internet, the web server can't access arcgisonline. How do I configure the server to use a web proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using arcserver 10.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405599#M37355</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2012-05-09T13:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405600#M37356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kyle, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are three likely scenarios.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1) Configuring an ArcGIS Proxy&lt;/STRONG&gt;&lt;SPAN&gt; and making sure it's working. This will allow your applications to access GIS services such as &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;. My previous suggestions relate to this scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2) Configuring your organization's network dmz/proxy/firewall&lt;/STRONG&gt;&lt;SPAN&gt;. For this you'll have to talk to your organization's network/IT engineers. They will have to configure your network proxy, DMZ or firewall that allows connections between the ArcGIS Proxy and &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;3) Configuring proxy access to your ArcGIS Server&lt;/STRONG&gt;&lt;SPAN&gt;. You also mentioned you have ArcGIS Server. If you have external applications that need to access your ArcGIS Server GIS services, then you'll also have to work with your network/IT engineers. We consider this an enterprise-level, third party deployment and offer professional services to help architect and configure reverse proxy configurations. Here's a few links that can help with this scenario. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/32634"&gt;Configure a reverse proxy system architecture with ArcGIS Server&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/35894"&gt;Configure a reverse proxy system architecture for ArcGIS Server with IIS 7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 14:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405600#M37356</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-09T14:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405601#M37357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not trying to access from server &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; text-decoration: underline;"&gt;&lt;STRONG&gt;from &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;the internet, I need configure the server for access &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; text-decoration: underline;"&gt;&lt;STRONG&gt;to &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;the internet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;arcgis &lt;/SPAN&gt;&lt;SPAN&gt;that is running the print services cannot access arcgisonline.com. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to configure these settings for the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;arcgis &lt;/SPAN&gt;&lt;SPAN&gt;user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14205[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 14:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405601#M37357</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2012-05-09T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405602#M37358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/main/10.1/0154/015400000309000000.htm"&gt;http://resourcesbeta.arcgis.com/en/help/main/10.1/0154/015400000309000000.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I confirmed the proxy is configured, but it still isn't working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 15:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405602#M37358</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2012-05-09T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405603#M37359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kyle,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I did notice that you've not added&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;" to the serverUrls string array in the Java proxy.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;If the "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;" is not found in this array no requests will be forwarded onward to services hosted in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This may be the problem.&amp;nbsp; Try adding this URL to the string array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After doing so, if this does not work can you please send the URL and full request which is associated with the below error message?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error executing tool.: Layer "layer0": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/Arc...Base/MapServer"&gt;http://services.arcgisonline.com/Arc...Base/MapServer&lt;/A&gt;&lt;SPAN&gt;. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."&lt;/SPAN&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>Wed, 09 May 2012 16:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405603#M37359</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-05-09T16:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405604#M37360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We aren't using services.arcgisonline, I added &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt; to the java proxy and it didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The full request is attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405604#M37360</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2012-05-10T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405605#M37361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Looks like I read "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;" based on the first thread.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyhow, can you give more details about the problem?&amp;nbsp; In the printout are you able to see the map features from the service that is hosted locally or is it just that map features from &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt; that are missing?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also what happens if you open a web browser on darcgis1 and go to&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; Are you able to see the REST endpoint?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also at one point did you have both Beta2 and Pre Release on the same machine?&amp;nbsp; Please let me know? &lt;/SPAN&gt;&lt;BR /&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, 10 May 2012 17:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405605#M37361</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-05-10T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405606#M37362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Desktop is installed and I can access server.arcgisonline from ArcCatalog and a web browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcCatalog: Customize... Arccatalog Options... Connections the proxy URL and Port is displayed correctly. The error in the server log (below) suggests it is not using the proxy setting to access AGOL. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer "layer0":&amp;nbsp; Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot connect to this server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Export Web Map).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 17:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405606#M37362</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2012-05-10T17:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405607#M37363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This issue can be addressed by ensuring the service account that ArcGIS Server runs under could access ArcGISOnline through the network proxy. See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a proxy server to connect to the Internet&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/Using_a_proxy_server_to_connect_to_the_Internet/015400000309000000/"&gt;http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/Using_a_proxy_server_to_connect_to_the_Internet/015400000309000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, it looks like the print task runs server side, so the basemap layers had to be accessible by ArcGIS Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~r&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405607#M37363</guid>
      <dc:creator>RandallWilliams</dc:creator>
      <dc:date>2012-05-21T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405608#M37364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting the exact same error with the export web map function. We have implemented an intranet flex web application on ArcGIS Server for .Net 10.1. We're using 4.6 SDK and Viewer 3.0. We get this error message when we try to run the print widget and the map service which the error message points to is our basemap cached map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The architecture is a reverse proxy, so the web app code actually resides on the ArcGIS server. The web server forwards the request to the app server. We have also installed Web Adaptor on our arcgis server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be causing this error message?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 16:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405608#M37364</guid>
      <dc:creator>SharonGin1</dc:creator>
      <dc:date>2013-03-12T16:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405609#M37365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, how you resolved this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 06:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405609#M37365</guid>
      <dc:creator>AndyLarkin1</dc:creator>
      <dc:date>2013-05-15T06:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405610#M37366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We did figure it out eventually. We realised that we had to point the domain name to the GIS server's IP address in the host file of the GIS server. We do that by adding 1 line in the host file which contained the GIS server IP address and space, followed by the domain url.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 06:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405610#M37366</guid>
      <dc:creator>SharonGin1</dc:creator>
      <dc:date>2013-05-15T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405611#M37367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanx, May you show your host file, please&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I configurated my host file C:\WINDOWS\system32\drivers\etc\hosts &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;BR /&gt;172.20.12.21&amp;nbsp;&amp;nbsp;&amp;nbsp; oiv.gis....ru&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; but in total i get local address &lt;/SPAN&gt;&lt;A href="http://hv-ogv-app:6080/arcgis/rest/directories/arcgisoutput/Print/PrintingServices_GPServer/_ags_d51240f4e9a94d1ab0cf60460e0bd8ba1.jpg"&gt;http://hv-ogv-app:6080/arcgis/rest/directories/arcgisoutput/Print/PrintingServices_GPServer/_ags_d51240f4e9a94d1ab0cf60460e0bd8ba1.jpg&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405611#M37367</guid>
      <dc:creator>AndyLarkin1</dc:creator>
      <dc:date>2013-05-15T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405612#M37368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not able to show my host file as there is sensitive information. but from what you provided, the entry of your host file should look like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;172.20.12.21 hv-ogv-app&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to confirm the info, could you provide the rest link to your map service which throws this error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405612#M37368</guid>
      <dc:creator>SharonGin1</dc:creator>
      <dc:date>2013-05-15T07:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405613#M37369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sample with my printing tools &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/KZvyM/"&gt;http://jsfiddle.net/KZvyM/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;error on arcgis server log &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SEVERE 15.05.2013 14:15:04 Error executing tool. Print/PrintingServices.GPServer&lt;BR /&gt;SEVERE 15.05.2013 14:15:04 Layer "Ocean_Basemap_5301": Unable to connect to map server at &lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer&lt;/A&gt;. Layer "LOJIC_LandRecords_Louisville_3326": Unable to connect to map server at &lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer&lt;/A&gt;. Failed to execute (ExportWebMap). Failed to execute (Export Web Map). Print/PrintingServices.GPServer&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405613#M37369</guid>
      <dc:creator>AndyLarkin1</dc:creator>
      <dc:date>2013-05-15T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405614#M37370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to resolve the issue by logging in as agsadmin, the service account running the server then attempt to access arcgisonline via browser. Turns out, in our domain, service accounts aren't configured to be able to access the internet. All I had to do was open internet options and fill in proxy information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 12:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405614#M37370</guid>
      <dc:creator>KyleDixon</dc:creator>
      <dc:date>2013-05-15T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405615#M37371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanx, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;may show to your service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:24:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405615#M37371</guid>
      <dc:creator>AndyLarkin1</dc:creator>
      <dc:date>2013-05-15T14:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: "Unable to connect to map server..."</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405616#M37372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was able to resolve the issue by logging in as agsadmin, the service account running the server then attempt to access arcgisonline via browser. Turns out, in our domain, service accounts aren't configured to be able to access the internet. All I had to do was open internet options and fill in proxy information.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where was the "All I had to do was open internet options and fill in proxy information".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 22:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-amp-amp-quot-unable-to/m-p/405616#M37372</guid>
      <dc:creator>HyrumErnstrom</dc:creator>
      <dc:date>2013-07-09T22:15:59Z</dc:date>
    </item>
  </channel>
</rss>

