Hi,
I am using ArcGIS Runtime 200.3
I have set up a named trace to do an Valve Isolation Trace. I can run the trace successfully in Pro against a mobile geodatabase containing UN. The only input parameter I am providing is the starting point.
I then tried running the same trace using .net sdk, which I have created using sample codes from Offline utility networks in ArcGIS Maps SDKs for Native Apps
I am using same the same starting location i.e. in same DMA, same named trace, same mobile geodatabase in both Pro and .net
But in .net, I am getting error:
"Tracing failed. Invalid subnetwork controllers found".
I can see there is a valid subnetwork controller for this particular DMA.
At other starting points (different DMAs), the trace works successfully in both .net & Pro.
Any idea why the trace could possibly fail using .net SDK, while it works in Pro
Solved! Go to Solution.
You're missing the nuget package that contains the MapView. You will need to add one of the following nuget packages (depending on the UI framework you use):
Are you able to try with 200.8 and see if that makes a difference? (even if you aren't able to permanently move to it, if there's a version it started working might help us narrow the issue down). A lot has changed in utility network support since 200.3
Thanks @dotMorten_esri
I have installed 200.8 in VS 2022 and try to recompile code. I am getting error:
The type 'esri:MapView' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Target framework .net8.0
Any idea?
Are you experiencing any nuget restore errors? Wrt target framework, it needs to be either net8.0-windows10.0.19041, net9.0-ios18.0, net9.0-android35.0 or net9.0-maccatalyst18.0 or newer.
Especially note .NET 9 if you are targeting .NET MAUI, since Microsoft no longer supports .NET 8 on MAUI, .NET 9 has been required since 200.7 for those targets.
No nuget restore errors.
Target framework is .net8.0
Target OS Windows 10.0.19041.0
The solution is compiling fine when I had ArcGISRuntime 200.3
This is the only change I have made.
Make sure to do a full clean and delete the /bin and /obj folders. I have seen this upgrading. If you are trying to debug on a device, you may want to remove the app from device also
Failure loading MapView after upgrade to 200.7
You're missing the nuget package that contains the MapView. You will need to add one of the following nuget packages (depending on the UI framework you use):