在 sharepoint 上的我的 asp.net 页面中,当我与另一个用户同时更改数据库时,我收到此错误:
(11/24/2012 3:53:32 PM) - Error Message: Save Conflict.
Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.
Stacktrace: at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.UpdateField(String bstrUrl, String bstrListName, String bstrXML)
at Microsoft.SharePoint.SPField.UpdateCore(Boolean bToggleSealed)
at PDF_Library.VisualWebPart1.PDF_Library.import_sections_into_column()
at PDF_Library.VisualWebPart1.PDF_Library.save_Click(Object sender, EventArgs e)
但是我如何捕捉到这个错误?我试着做
catch (COMException) {
}
但这不起作用...
有谁知道为什么?