Coding a Find Address tool for a mobile application. The Address locator is local for the application.
An address Geocoding tool from a form input of an address :
Eg: 5125 Elmore Road
Able to get the locator file, but when type casted to addressgeocoding (IAddressGeoGoding), I get this exception **
private void GetLocator()
{
locatorManager = new LocatorManagerClass();
locatorWorkspace = locatorManager.GetLocatorWorkspaceFromPath(@"C:\Temp\Locator");
//localLocatorWorkSpace = (ILocalLocatorWorkspace)locatorWorkspace;
//get the address locator
locator = locatorWorkspace.GetLocator("Jeetu");
addressGeoCoding** = (IAddressGeocoding)locator;
ERROR: ** MatchFields = 'addressGeoCoding.MatchFields' threw an exception of type 'System.Runtime.InteropServices.COMException'
}
Need help on this error.