Thanks Vince and Derek,
Thanks for your replies..
I am using Enterprise SDE, and using SDE.QAQC version Datasource. Issue is, users can edit the data from any locations if there is no edit conflicts. However, when multiple users try creating features at same time, SDE allows only one user to save edits, and the others are thrown exceptions like ..
1. "Objects in this class cannot be updated outside an edit session"
2. "The version has been redefined to reference a new database state. "
3. "Exception from HRESULT:0x80041055"
4. "The Work Space cannot being edited. [SDE.QAQC]"
etc.,
Now, I don't understand where the issue is? I have used
IMultiuserWorkspaceEdit muConsumerWorkspaceEdit = (IMultiuserWorkspaceEdit)pConFtrCls.FeatureDataset.Workspace;
IWorkspace pConWrkspce = pConFtrCls.FeatureDataset.Workspace;
IWorkspaceEdit pConWorkspaceEdit = pConWrkspce as IWorkspaceEdit;
....
if (!muConsumerWorkspaceEdit.SupportsMultiuserEditSessionMode(esriMultiuserEditSessionMode.esriMESMVersioned))
{
throw new ArgumentException("The workspace does not support versioned editing.");
}
muConsumerWorkspaceEdit.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMVersioned);
if (pConWorkspaceEdit.IsBeingEdited()) { pConWorkspaceEdit.StopEditing(true); }
pConWorkspaceEdit.StartEditing(false);
pConWorkspaceEdit.StartEditOperation();
ESRI.ArcGIS.Geodatabase.IFeature pConsumerFtr = pConFtrCls.CreateFeature();
//Then I am filling the shape and all other attributes..
//Then storing the feature
pConsumerFtr.Store();
pConWorkspaceEdit.StopEditOperation();
/////////////////
Please help.. I am not understanding where I went wrong. Seems everything fine. Still, multiuser editing is not happening.