Select to view content in your preferred language

Locator Service

2759
6
10-03-2012 06:34 AM
BenjaminViss
Deactivated User
All,

I turn to this forum to hopefully find some advice in the following:
The address locator has been giving an error (see below).
I have built a new address locator and published it... I have tried several possible solutions in the config and have been searching all over the place for trouble-shooting. But unsuccessful. It says its unable to connect to the locator service (http://myserver/ArcGIS/rest/services/geocoder/GeocodeServer).

Any help would be a big relief and if you need more info just let me know.

Cheers!

(I'm using the compiled version of 2.5 (I am also migrating to 3.0 which works fine!).

[ATTACH=CONFIG]18157[/ATTACH]
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   What does your full LocateWidget xml look like?
0 Kudos
BenjaminViss
Deactivated User
Benjamin,

What does your full LocateWidget xml look like?

<?xmlversion="1.0" ?>
<configurationlabel="U.S. Geocoding">
<locator>http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</locator>
<minscore>30</minscore>
<zoomscale>2000</zoomscale>
</configuration>
<!--
See Locate widget tag reference at
http://links.esri.com/locatewidget
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   So now you have me really confussed... If this it the real LocateWidget_???.xml that you are using than why do you have the locator pointing to a map service instead of a geocodeservice?

<?xmlversion="1.0" ?>
<configurationlabel="U.S. Geocoding">
<locator>http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</locator>
<minscore>30</minscore>
<zoomscale>2000</zoomscale>
</configuration>
<!--
See Locate widget tag reference at
http://links.esri.com/locatewidget
0 Kudos
BenjaminViss
Deactivated User
I can understand I have you confused and you'll have to bear with me as I dont know what could've gone wrong.
So, I changed the url to :http://arcgisprd/ArcGIS/rest/services/geocoder/GeocodeServer, which is the geocoders (that I made) url.
Seems though doesn't matter what I change it too...I keep getting the same error.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   Are you sure you are editing the XML file that your locate widget is pointing to based on the url in the main config.xml?

Example:

        <widget label="Find an address"   left="100" top="90" preload="open"
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget.xml"
                url="widgets/Locate/LocateWidget.swf"/>
0 Kudos
BenjaminViss
Deactivated User
Benjamin,

Are you sure you are editing the XML file that your locate widget is pointing to based on the url in the main config.xml?

Example:

        <widget label="Find an address"   left="100" top="90" preload="open"
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget.xml"
                url="widgets/Locate/LocateWidget.swf"/>


Robert,

I have solved the issue by using an already-made locator.
Thanks anyway for taking the time!
0 Kudos