I have an ArcObjects application that is throwing the exception, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
on the line from the below code, feat.Store()
. feat
is an implementation of ESRI.ArcGIS.Geodatabase.IFeature
. Throughout debugging, the application successfully ran ArcObjects code until it hit that line.
IEnumFeatureClass fcs = GetFeatureClasses();
IFeatureClass fc;
while ((fc = fcs.Next()) != null)
{
IField fld = GetField();
IQueryFilter qf = new QueryFilterClass();
qf.WhereClause = fld.Name + "=" + "SomeValue";
IFeatureCursor crs = fc.Search(qf, false);
IFeature feat;
while ((feat = crs.NextFeature()) != null)
{
feat.set_Value(feat.Fields.FindField(fld.Name), "SomeIDNumber");
feat.Store();
}
}
I have tried compiling and debugging on both an Any CPU
and x86
platforms. I have also attempted registering the dll into which this code is compiling. I am unable to confirm if dll registration was successful or not. At this point, it looks like dll registration was unsuccessful. I have also attempted GAC installation of this dll, and I can confirm that installation into the GAC was unsuccessful. I have also considered uninstalling ArcObjects and ArcMap and reinstalling ArcMap and ArcObjects, but before I continue down this road, I want to ask a question.
Does anybody have ideas about what might be happening here?