Select to view content in your preferred language

Unable to locate geocode service

1793
10
07-30-2014 06:40 AM
RoxanneWilson
Emerging Contributor

I'm creating my very first application with flex builder, so I am very new to the technology.  I've created a map and am getting ready to push it to my co-workers when I began to get this error.

When in the preview tab, if I click on the link to IE, I get the error below.  I've tried changing the service or even turning it off, but still get the same error.  Any ideas?

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus

Roxanne,

   Do you get the same error in Firefox or Chrome?

I notice that your app is running in http and the geocode url that the error is coming from has https. Mixing HTTP and HTTPS can be an issue.

0 Kudos
RoxanneWilson
Emerging Contributor

I don't have chrome installed, but the error does not occur in FireFox.  So it's an IE issue?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

No I am not saying that it is specifically an IE issue I just want to see if you had the same issue in other browsers. can you get to this link https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer‌ and see the  "Services Directory has been disabled" message?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

The error is coming from the HeaderController widgets GeocoderComponent. On the Layout tab in App Builder click the edit button under "Search" in the "Viewer Header Placeholder" and uncheck "Locator", just as a test and run your app again.

0 Kudos
RoxanneWilson
Emerging Contributor

The odd thing is my boss has some test applications and when I open those through IE, I don't get the error.  Which made me think it was the application/settings more than the browser.

0 Kudos
RoxanneWilson
Emerging Contributor

Yes, I can see that.

0 Kudos
RoxanneWilson
Emerging Contributor

I shut off the locator component.  Re-running the app still gave me the error.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Are your clearing your browsers cache? You should not be getting the same error when the locator is off...

RoxanneWilson
Emerging Contributor

I cleared the cache and it worked without the error.

I then turned the locator service back on and it seems to be working fine now.  No error.

0 Kudos