Select to view content in your preferred language

Isolation Trace works in Pro but fails using .net SDK

343
7
Jump to solution
11-03-2025 04:15 AM
khem1000
Emerging Contributor

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

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

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):

  • Esri.ArcGISRuntime.Wpf
  • Esri.ArcGISRuntime.WinUI
  • Esri.ArcGISRuntime.Maui
  • Esri.ArcGISRuntime.UWP

View solution in original post

0 Kudos
7 Replies
dotMorten_esri
Esri Notable Contributor

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

0 Kudos
khem1000
Emerging Contributor

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?

 

0 Kudos
dotMorten_esri
Esri Notable Contributor

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.

0 Kudos
khem1000
Emerging Contributor

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.

 

0 Kudos
JoeHershman
MVP Alum

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 

Thanks,
-Joe
0 Kudos
khem1000
Emerging Contributor

Thanks. 

Unfortunately this didn't work. Also tried upgrading VS2022 to latest version and ,set target framework to net9.0. It still comes up with same error.

I have attached a simplified VS solution showing the issue.

Any ideas??

 

 

 

 

 

0 Kudos
dotMorten_esri
Esri Notable Contributor

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):

  • Esri.ArcGISRuntime.Wpf
  • Esri.ArcGISRuntime.WinUI
  • Esri.ArcGISRuntime.Maui
  • Esri.ArcGISRuntime.UWP
0 Kudos