Dear Friends
We have recently migrated from ArcGis 9.1 to 10.2.1 VS2010 .We have tool to insert features into a feature class.Initialy after migration tool worked without any errors but sometimes tool throws "The Workspace is not connected" ErrorCode -2147467259.After debugging i found out pEditor.StartOperation() line is not executing and throws error.Kindly help me for this issue
Public Function startEditing(ByVal pEditor As IEditor, ByVal pWorkspace As IWorkspace) As Boolean
Try
If pEditor.EditState = esriEditState.esriStateNotEditing Then
pEditor.StartEditing(pWorkspace)
End If
pEditor.StartOperation()
Return True
Catch ex As Exception
MsgBox(ex.Message & "-startEditing", MsgBoxStyle.Information, "Start Editing")
Return False
End Try
End Function
Thanks in advance
Kroy