We are trying to setup an application to use an offline locator in our Runtime app (100.7). I have looked at the sample and it does not go into anything about actually building the locator. We created a locator in pro, however, the output files differ from what is downloaded when using the sample.
The sample provides four files, with extensions .loc, .loc.xml, .lob, .lox. When creating in Pro we get two file one is .loc the other .loz. Also looking in a text editor the .loc files are not at all the same
When trying to load the locator created in pro an exception is thrown
Invalid response
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Esri.ArcGISRuntime.Tasks.Geocoding.LocatorTask.<CreateAsync>d__10.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at [my local code]
I found this article https://support.esri.com/en/technical-article/000015598. Which discusses creating a replica for Runtime, but it is from 2017 and seems targeted at Runtime 10.x. However, it does discuss the same types of files which are seen when running the sample application. But the idea that we would be creating a package in ArcMap to be consumed by a Runtime 100.x application seems very illogical to me.
How does one generate a locator to be consumed by an offline Runtime application?
Thanks