Select to view content in your preferred language

EncExchangeSet.LoadAsync() Internal Error: Failed to load ENC exchange set

485
3
04-08-2022 01:59 AM
irseadam
New Contributor

When I try to load an EncExchangeSet object, I get the following error:

Esri.ArcGISRuntime.ArcGISRuntimeException: Internal Error: Failed to load ENC exchange set

I use the same code provided in the sample codes section (https://developers.arcgis.com/net/wpf/sample-code/add-enc-exchange-set/), and I feed the EncExchangeSet constructor with a valid path to a "CATALOG.031" file.

I get this error in the loading step:

 

 

await myEncExchangeSet.LoadAsync();

 

 

What may cause this error and what should I do to fix this?

 
 
 
0 Kudos
3 Replies
HydroExpert
New Contributor

Hello, are you able to share the CATALOG.031 file?

Can you paste the code that loads the CATALOG.031 file?

 

 

0 Kudos
hesapadam
New Contributor III

Hi,

I am trying the file attached below. 

And I am using the code from this example: https://developers.arcgis.com/net/wpf/sample-code/add-enc-exchange-set/ 

In the 

await myEncExchangeSet.LoadAsync();

line, I get this error:

Esri.ArcGISRuntime.ArcGISRuntimeException: Internal Error: Failed to load ENC exchange set

 

 

0 Kudos
HydroExpert
New Contributor

Hello,

 

These charts are Inland ENC (IENC) and apparently not supported by ArcGIS Runtime.

I was able to view them with an older version (100.2).

 

Use this demo app: https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/HydrographicsSample

HydroExpert_0-1650639779592.pngHydroExpert_1-1650639836410.pngHydroExpert_2-1650639894705.png

 

However, ArcGIS Runtime versions after 100.2 will not load IENC data.

0 Kudos