Select to view content in your preferred language

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

06-08-2023 02:36 PM
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
Esri Regular Contributor


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

Sample here: