David,
Thanks for your code, I reproduced your problem on my local machine, this is a bug in the new version, we ignored the constructor problem of StreetMatchingPlugin, usually, when we used the UsaGeocoder object, we just need to open it and match, so we didn't need to add StreetMatchingPlugin myself, but this is a definitely bug, I have fixed it, please keep your eyes on the site to get the update version.
Also, currently, there is a workaround way for your problem, please see the changed code below:
UsaGeocoder InstanceGeocoder = new UsaGeocoder(GeocoderPath, MatchMode.ExactMatch);
InstanceGeocoder.MatchingPlugIns.Clear();
InstanceGeocoder.MatchingPlugIns.Add(new StreetMatchingPlugin(GeocoderPath, MatchMode.Default));
Collection<GeocoderMatch> matches = new Collection<GeocoderMatch>();
try
{
InstanceGeocoder.Open();
Collection<GeocoderMatch> temp = InstanceGeocoder.Match("21910 Suburban", "46516");
}
catch (Exception ex)
{
// catch errors
Console.WriteLine(ex.ToString());
throw;
}
finally
{
InstanceGeocoder.Close();
}
You just need to use another constructor of StreetMatchingPlugin, your problem can be resolved correctly.
Thanks,
Scott,