We have a Xamarin Forms app using the ArcGIS Runtime version 100.15, running on Windows, iOS, and Android. We're using a routing task, and it works fine on iOS and Android. On Windows (19043) however, the routing task creation throws the following exception:
Esri.ArcGISRuntime.ArcGISRuntimeException: Unknown error: Directions resource file version does not match
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at Esri.ArcGISRuntime.Tasks.NetworkAnalysis.RouteTask.<CreateAsync>d__11.MoveNext() + 0x15a
--- End of stack trace from previous location where exception was thrown ---
It worked in the Runtime version 100.8 and stopped working when we updated to 100.9. In 100.9 the error message we got was a little different:
Esri.ArcGISRuntime.ArcGISRuntimeException: Not found: Cannot load network analyst resources
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
at Esri.ArcGISRuntime.Tasks.NetworkAnalysis.RouteTask.<CreateAsync>d__11.MoveNext() + 0x177
--- End of stack trace from previous location where exception was thrown ---
At some point the error message changed to the one above but it still fails anyway.
I've tried a couple different routing urls, https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World and https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route and both have the same error.
The tricky thing is that the issue doesn't occur in a debug build, or in a local release build - only when we build on our build server. In that way it feels a little reminiscent of this other issue we had during the 100.9 upgrade but a similar solution (directly referencing the "Esri.ArcGISRuntime.runtimes.win" nuget package) hasn't done the trick.
Could anyone provide a suggestion of what might be going wrong based on the error message?