Select to view content in your preferred language

The type initializer for 'ArcGIS.Desktop.Editing.EditingModule' threw an exception

276
1
06-08-2023 02:36 PM
Chip727
New Contributor II

I’m trying to update a database record using the EditOperation class, and I’m running into problems instantiating that class.  It requires WPF, and I’m not sure about using that in a web application.  When I try to create a EditOperation, I get the exception “The type initializer for 'ArcGIS.Desktop.Editing.EditingModule' threw an exception”.

Is there another way to update a row from a Table or FeatureClass?  Perhaps equivalent to an InsertCursor? Has anyone run into this with C#?

We’re using C#, ArcGIS Pro SDK 2.9.

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

For CoreHost applications, calls to editing methods should be enclosed within a call to Geodatabase.ApplyEdits.

Sample here:

https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-creating-updating-features-via-corehost...