Select to view content in your preferred language

'Difference'  in 'geometryservice' not working when app is on apache server

1977
10
05-09-2014 08:18 AM
NubianConsulting
Emerging Contributor
Dear All,

I am writing here to enquire whether others who use ArcGIS API for Javascript have also had the following problem, and if so, whether you could advise on a solution.

The Problem: The 'difference' method under the 'geometryservice' class works on my machine locally (when I run the javascript from dreamweaver), but when I put the html file on my server and try to access it online, the method does not work and returns the error message.

This is puzzling because I have another geometry service - 'buffer', which works on both my local machine and when on the server.

Other points:
- url sourcing javascript theme: http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css
- url sourcing javascript api: http://js.arcgis.com/3.9/js/esri/css/esri.css
- url sourcing other javascript esri info: http://js.arcgis.com/3.9/
- link to geometry service api reference page: https://developers.arcgis.com/javascript/jsapi/geometryservice.html

Any advice or pointers would be very much appreciated. Please do let me know if you require more information/ code snippets and I would be more than happy to do so.

Kind Regards,

Naveen
0 Kudos
10 Replies
JohnGravois
Deactivated User
your app failed for me, logging the following error in the console.

Error {stack: "Error: esri.config.defaults.io.proxyUrl is not set�?�h.hitch (http://js.arcgis.com/3.9/init.js:174:23)", log: undefined, _ssl: undefined, message: "esri.config.defaults.io.proxyUrl is not set."}
 "Error: esri.config.defaults.io.proxyUrl is not set.


after resolving that problem, the call to difference() seems to execute successfully.
0 Kudos