<?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: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492245#M45701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I checked the folder C:\Inetpub\wwwroot\ArcGIS\rest and did not see the arcgiswebservices user listed in the permissions, so I went ahead and added it.&amp;nbsp; Unfortunately, I am still getting the same error!&lt;BR /&gt;&lt;BR /&gt;I am also seeing this error under the XML tab of the request (in firebug NET tab):&lt;BR /&gt;&lt;BR /&gt;XML Parsing Error: no element found Location: moz-nullprincipal:{a3df32b9-85a8-4045-8239-c16f41c90f1c} Line Number 1, Column 1:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you include this script tag in your page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2011 12:43:57 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2011-04-08T12:43:57Z</dc:date>
    <item>
      <title>Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492240#M45696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have ArcGIS Server Enterprise with ArcSDE/PostgreSQL running on one windows XP machine.&amp;nbsp; All queries, including spatial queries are working as expected.&amp;nbsp; Then I moved the data and maps to another installation of ArcGIS Server Enterprise on Windows 2008 Server 64bit with ArcSDE/PostgreSQL on a separate Windows 2008 Server 64bit.&amp;nbsp; I can re-run the javascript against the new installation and all of the spatial queries return an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: _297 is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(undefined="null", undefined="[object Object]")arcgis?v=2.2 (line 48)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(undefined="null")arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_144()arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_142(undefined="null")arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(undefined="null")arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_144()arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_142(undefined="[object Object]")arcgis?v=2.2 (line 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Break On This Error]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out the code that includes the spatial query, the data is returned just fine.&amp;nbsp; Here is the code where I am having problems.&amp;nbsp; The query results are never returned and the inline function does not get executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.returnGeometry = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.outFields = ["*"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.geometry = geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.spatialRelationship = query.SPATIAL_REL_CONTAINS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pquery.where = "length (huc_id) = 8";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hucCtrFeatureLayer.selectFeatures(pquery, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (features.length &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("messages").innerHTML = "HUC 8 Features found: " + features.length;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("messages").innerHTML = "No HUC 8 features found.";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, displayErr);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out these 2 lines, the query works just fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.geometry = geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.spatialRelationship = query.SPATIAL_REL_CONTAINS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This same error is occurring for all spatial queries regardless of the layers.&amp;nbsp; I checked for spatial indexing and the layers being queried are showing they have a spatial index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 14:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492240#M45696</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-04T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492241#M45697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have ArcGIS Server Enterprise with ArcSDE/PostgreSQL running on one windows XP machine.&amp;nbsp; All queries, including spatial queries are working as expected.&amp;nbsp; Then I moved the data and maps to another installation of ArcGIS Server Enterprise on Windows 2008 Server 64bit with ArcSDE/PostgreSQL on a separate Windows 2008 Server 64bit.&amp;nbsp; I can re-run the javascript against the new installation and all of the spatial queries return an error:&lt;BR /&gt;&lt;BR /&gt;TypeError: _297 is null&lt;BR /&gt;(undefined="null", undefined="[object Object]")arcgis?v=2.2 (line 48)&lt;BR /&gt;(undefined="null")arcgis?v=2.2 (line 14)&lt;BR /&gt;_144()arcgis?v=2.2 (line 14)&lt;BR /&gt;_142(undefined="null")arcgis?v=2.2 (line 14)&lt;BR /&gt;(undefined="null")arcgis?v=2.2 (line 14)&lt;BR /&gt;_144()arcgis?v=2.2 (line 14)&lt;BR /&gt;_142(undefined="[object Object]")arcgis?v=2.2 (line 14)&lt;BR /&gt;[Break On This Error]&lt;BR /&gt;&lt;BR /&gt;If I comment out the code that includes the spatial query, the data is returned just fine.&amp;nbsp; Here is the code where I am having problems.&amp;nbsp; The query results are never returned and the inline function does not get executed:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.returnGeometry = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.outFields = ["*"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.geometry = geometry;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.spatialRelationship = query.SPATIAL_REL_CONTAINS;&lt;BR /&gt; pquery.where = "length (huc_id) = 8";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hucCtrFeatureLayer.selectFeatures(pquery, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (features.length &amp;gt; 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("messages").innerHTML = "HUC 8 Features found: " + features.length;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("messages").innerHTML = "No HUC 8 features found.";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, displayErr);&lt;BR /&gt;&lt;BR /&gt;If I comment out these 2 lines, the query works just fine:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.geometry = geometry;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pquery.spatialRelationship = query.SPATIAL_REL_CONTAINS;&lt;BR /&gt;&lt;BR /&gt;This same error is occurring for all spatial queries regardless of the layers.&amp;nbsp; I checked for spatial indexing and the layers being queried are showing they have a spatial index.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&amp;nbsp; Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have you add your new services directory to your proxy.config. When you do a spatial query, it usually involved geometry-huge querysting!. That means that most likely your query have to go throug POST not GET...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 18:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492241#M45697</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-04-07T18:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492242#M45698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;have you add your new services directory to your proxy.config. When you do a spatial query, it usually involved geometry-huge querysting!. That means that most likely your query have to go throug POST not GET...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been wondering about that, too since I can run the query using the REST query form.&amp;nbsp; But, still no luck figuring it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my proxy.config file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ProxyConfig mustMatch="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- serverUrl options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; password stored in web.config file's appSettings section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myhost.com/arcgis/rest/services/" rel="nofollow" target="_blank"&gt;http://myhost.com/arcgis/rest/services/&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can access the map layer query service by this url (host name is changed):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query"&gt;http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the NET traffic, it appears this is what is being requested, but I am seeing this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Unable to load &lt;/SPAN&gt;&lt;A href="http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query"&gt;http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query&lt;/A&gt;&lt;SPAN&gt; status:0&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 19:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492242#M45698</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-07T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492243#M45699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've been wondering about that, too since I can run the query using the REST query form.&amp;nbsp; But, still no luck figuring it out.&lt;BR /&gt;&lt;BR /&gt;Here is my proxy.config file.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&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;&lt;BR /&gt;&amp;lt;ProxyConfig mustMatch="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- serverUrl options:&lt;BR /&gt;&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&lt;BR /&gt;&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&lt;BR /&gt;&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&lt;BR /&gt;&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&lt;BR /&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; password stored in web.config file's appSettings section.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://myhost.com/arcgis/rest/services/" &lt;BR /&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; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I can access the map layer query service by this url (host name is changed):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query"&gt;http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Looking at the NET traffic, it appears this is what is being requested, but I am seeing this error:&lt;BR /&gt;&lt;BR /&gt;Error: Unable to load &lt;A href="http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query"&gt;http://myhost.com/proxy/proxy.ashx?http://myhost.com/ArcGIS/rest/services/test/huc_centerpts/MapServer/0/query&lt;/A&gt; status:0&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you check to see if your ArcGISWebSerivces acount has the access of your services directory folder? Usually in C:\Inetpub\wwwroot\ArcGIS\rest. This is the acount that access your services or cache through web...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 20:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492243#M45699</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-04-07T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492244#M45700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I checked the folder C:\Inetpub\wwwroot\ArcGIS\rest and did not see the arcgiswebservices user listed in the permissions, so I went ahead and added it.&amp;nbsp; Unfortunately, I am still getting the same error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also seeing this error under the XML tab of the request (in firebug NET tab):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XML Parsing Error: no element found Location: moz-nullprincipal:{a3df32b9-85a8-4045-8239-c16f41c90f1c} Line Number 1, Column 1:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 20:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492244#M45700</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-07T20:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492245#M45701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I checked the folder C:\Inetpub\wwwroot\ArcGIS\rest and did not see the arcgiswebservices user listed in the permissions, so I went ahead and added it.&amp;nbsp; Unfortunately, I am still getting the same error!&lt;BR /&gt;&lt;BR /&gt;I am also seeing this error under the XML tab of the request (in firebug NET tab):&lt;BR /&gt;&lt;BR /&gt;XML Parsing Error: no element found Location: moz-nullprincipal:{a3df32b9-85a8-4045-8239-c16f41c90f1c} Line Number 1, Column 1:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you include this script tag in your page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 12:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492245#M45701</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-04-08T12:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492246#M45702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you include this script tag in your page?&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it is there.&amp;nbsp; This same code runs on my windows xp machine that has arcgis server enterprise and postgresql installed. Thanks for asking.&amp;nbsp; I am hoping you'll think of something for me to check that finds the problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I walked through the setup of the proxy code again yesterday.&amp;nbsp; I had forgotten to set up the proxy folder as an application on the windows server 2008 machine.&amp;nbsp; I did that step yesterday morning, but it did not fix the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 13:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492246#M45702</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-08T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492247#M45703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if this helps, but here is a screenshot of the request that is failing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 13:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492247#M45703</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-08T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492248#M45704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, it is there.&amp;nbsp; This same code runs on my windows xp machine that has arcgis server enterprise and postgresql installed. Thanks for asking.&amp;nbsp; I am hoping you'll think of something for me to check that finds the problem!&lt;BR /&gt;&lt;BR /&gt;I walked through the setup of the proxy code again yesterday.&amp;nbsp; I had forgotten to set up the proxy folder as an application on the windows server 2008 machine.&amp;nbsp; I did that step yesterday morning, but it did not fix the issue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to use a very simple geometry like a extent (rectangle) to do you spatial query. Doing this you by pass the proxy POST to see if it works.&amp;nbsp; From what you described and the message,&amp;nbsp; it seems to me that either query request is not parsed correctly to the server or it do not parsed at all (more like the last). There is related post that might help you: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/12690-Unable-to-load-proxy"&gt;http://forums.arcgis.com/threads/12690-Unable-to-load-proxy&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 13:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492248#M45704</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-04-08T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Queries quit working on ArcGIS Enterprise Server on Windows Server 2008</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492249#M45705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just fround the problem from reading this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/27686-Trouble-with-buffer-query-not-returning-results"&gt;http://forums.arcgis.com/threads/27686-Trouble-with-buffer-query-not-returning-results&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was not running the web page from the web server directory.&amp;nbsp; After moving it there, I am now getting the results back!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hzhu, thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 14:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/spatial-queries-quit-working-on-arcgis-enterprise/m-p/492249#M45705</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-04-08T14:01:51Z</dc:date>
    </item>
  </channel>
</rss>

