I have a point feature class A in file gdb and then I created a feature-linked annotation class B.
Then I have made a SDK program to create annotation on B, the program work fine on file gdb. But I copied both A & B to geodatabase on SQL Server, the program failed, 'Objects in this object class cannot be updated outside of an edit session.' is shown.
I found that the error occurred on the code below:
RowBuffer annoBuf = annoFC.CreateRowBuffer();
Feature anFt = annoFC.CreateRow(annoBuf);
AnnotationFeature annoFt = (AnnotationFeature)anFt;
Do anyone have ideas?