<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RouteTask.CreateAsync fails on Windows: &amp;quot;Directions resource file version does not match&amp;quot; in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1241737#M11557</link>
    <description>&lt;P&gt;Looking at the more detailed build output I could see that in a good build there was a step:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Copying file from "C:\Users\[user]\.nuget\packages\esri.arcgisruntime\100.15.0\resources\&lt;SPAN class=""&gt;network_anal&lt;/SPAN&gt;yst\strings.bin" to "[outputfolder]\bin\x64\Release\RuntimeCoreNet\resources\&lt;SPAN class=""&gt;network_anal&lt;/SPAN&gt;yst\strings.bin".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;In a bad build there was no attempt to copy that file over...&lt;BR /&gt;Since I could see which nuget package it was meant to come from, I tried added an&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;explicit reference to the Esri.ArcGISRuntime nuget package in our UWP project (previously it was only explicitly referenced in the shared project), and that did the trick. I'm not sure why that wasn't necessary for iOS and Android or why it worked locally but at least it works now!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 21:01:33 GMT</pubDate>
    <dc:creator>FelicityRhone</dc:creator>
    <dc:date>2022-12-15T21:01:33Z</dc:date>
    <item>
      <title>RouteTask.CreateAsync fails on Windows: "Directions resource file version does not match"</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1240746#M11539</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: Unknown error: Directions resource file version does not match&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb&lt;BR /&gt;at Esri.ArcGISRuntime.Tasks.NetworkAnalysis.RouteTask.&amp;lt;CreateAsync&amp;gt;d__11.MoveNext() + 0x15a&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;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:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: Not found: Cannot load network analyst resources&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;at Esri.ArcGISRuntime.Tasks.NetworkAnalysis.RouteTask.&amp;lt;CreateAsync&amp;gt;d__11.MoveNext() + 0x177&lt;/DIV&gt;&lt;DIV&gt;--- End of stack trace from previous location where exception was thrown ---&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At some point the error message changed to the one above but it still fails anyway.&lt;/P&gt;&lt;P&gt;I've tried a couple different routing urls,&amp;nbsp;&lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" target="_blank" rel="noopener"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/A&gt;&amp;nbsp;and both have the same error.&lt;/P&gt;&lt;P&gt;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 &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/runtime-errors-on-android-after-updating/td-p/248023" target="_self"&gt;this other issue we had during the 100.9 upgrade&lt;/A&gt;&amp;nbsp;but a similar solution (directly referencing the "Esri.ArcGISRuntime.runtimes.win" nuget package) hasn't done the trick.&lt;BR /&gt;&lt;BR /&gt;Could anyone provide a suggestion of what might be going wrong based on the error message?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 19:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1240746#M11539</guid>
      <dc:creator>FelicityRhone</dc:creator>
      <dc:date>2022-12-13T19:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask.CreateAsync fails on Windows: "Directions resource file version does not match"</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1240897#M11543</link>
      <description>&lt;P&gt;The error message appears to be referring to the directions resource file `Esri.ArcGISRuntime.100.15.0\resources\network_analyst\strings.bin` which should automatically be copied to your project output folder when building e.g. `\arcgis-runtime-samples-dotnet\output\UWP\x64\debug\RuntimeCoreNet\resources\network_analyst\strings.bin`.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 00:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1240897#M11543</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-12-14T00:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask.CreateAsync fails on Windows: "Directions resource file version does not match"</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1241462#M11550</link>
      <description>&lt;P&gt;Thanks! I do see that file for the (working) local build output, but the '[...]\bin\x64\Release\RuntimeCoreNet\resources\' folder on our production build server only contains the 'shaders' folder - the 'network_analyst' folder is missing. I'm still investigating why...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1241462#M11550</guid>
      <dc:creator>FelicityRhone</dc:creator>
      <dc:date>2022-12-15T07:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask.CreateAsync fails on Windows: "Directions resource file version does not match"</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1241737#M11557</link>
      <description>&lt;P&gt;Looking at the more detailed build output I could see that in a good build there was a step:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Copying file from "C:\Users\[user]\.nuget\packages\esri.arcgisruntime\100.15.0\resources\&lt;SPAN class=""&gt;network_anal&lt;/SPAN&gt;yst\strings.bin" to "[outputfolder]\bin\x64\Release\RuntimeCoreNet\resources\&lt;SPAN class=""&gt;network_anal&lt;/SPAN&gt;yst\strings.bin".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;In a bad build there was no attempt to copy that file over...&lt;BR /&gt;Since I could see which nuget package it was meant to come from, I tried added an&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;explicit reference to the Esri.ArcGISRuntime nuget package in our UWP project (previously it was only explicitly referenced in the shared project), and that did the trick. I'm not sure why that wasn't necessary for iOS and Android or why it worked locally but at least it works now!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 21:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/routetask-createasync-fails-on-windows-quot/m-p/1241737#M11557</guid>
      <dc:creator>FelicityRhone</dc:creator>
      <dc:date>2022-12-15T21:01:33Z</dc:date>
    </item>
  </channel>
</rss>

