หากคุณพยายามที่จะปรับปรุงแฟ้ม XML InfoPath โดยใช้รูปแบบวัตถุในเหตุการณ์ WebParts / หรือผ่านสื่อใด ๆ.
ในขณะที่ execting Item.Update() จะก่อให้เกิดข้อผิดพลาดด้านล่าง. ในขณะที่การปรับปรุง InfoPath xml ใน ListItem
แฟ้มและ ListItem วัตถุได้รับการตัดการเชื่อมต่อ.
Item.File.Update() จะแก้ปัญหาของคุณ.
StackTrace ของข้อผิดพลาด:
[COMException (0x81020037): ไฟล์ SampleFile/SampleFile_2009-06-11T18_57_00.xml ได้รับการแก้ไขโดย SharePoint ระบบ บน 13 มิถุนายน 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean bAdd, bSystemUpdate บูลีน, bPreserveItemVersion บูลีน, bUpdateNoVersion บูลีน, Int32& plID, เชือก& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, วัตถุ& pvarAttachmentNames, วัตถุ& pvarAttachmentContents, วัตถุ& pvarProperties, bCheckOut บูลีน, bCheckin บูลีน, bMigration บูลีน, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean bAdd, bSystemUpdate บูลีน, bPreserveItemVersion บูลีน, bUpdateNoVersion บูลีน, Int32& plID, เชือก& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, วัตถุ& pvarAttachmentNames, วัตถุ& pvarAttachmentContents, วัตถุ& pvarProperties, bCheckOut บูลีน, bCheckin บูลีน, bMigration บูลีน, Boolean bPublish) +203
[SPException: ไฟล์ SampleFile/SampleFile_2009-06-11T18_57_00.xml ได้รับการแก้ไขโดย SharePoint ระบบ บน 13 มิถุนายน 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(bstrUrl String, bstrListName String, Boolean bAdd, bSystemUpdate บูลีน, bPreserveItemVersion บูลีน, bUpdateNoVersion บูลีน, Int32& plID, เชือก& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, bstrVersion String, วัตถุ& pvarAttachmentNames, วัตถุ& pvarAttachmentContents, วัตถุ& pvarProperties, bCheckOut บูลีน, bCheckin บูลีน, bMigration บูลีน, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, bSystem บูลีน, bPreserveItemVersion บูลีน, bNoVersion บูลีน, bMigration บูลีน, Boolean bPublish, bCheckOut บูลีน, bCheckin บูลีน, Guid newGuidOnAdd, Int32& ulID, วัตถุ& objAttachmentNames, วัตถุ& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(bSystem บูลีน, bPreserveItemVersion บูลีน, Guid newGuidOnAdd, bMigration บูลีน, Boolean bPublish, bNoVersion บูลีน, bCheckOut บูลีน, bCheckin บูลีน, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls<>c__DisplayClass1<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(สภาพวัตถุ) +70 Microsoft.SharePoint<>c__DisplayClass4<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(รอกลับ SecureCode, param วัตถุ) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(ผู้ส่งวัตถุ, EventArgs E) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs E) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(eventArgument String) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(eventArgument String) +10 System.Web.UI.Page.RaisePostBackEvent(sourceControl IPostBackEventHandler, eventArgument String) +13 System.Web.UI.Page.RaisePostBackEvent(postData NameValueCollection) +36 System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint บูลีน, includeStagesAfterAsyncPoint บูลีน) +1565 |
ขอขอบคุณสำหรับการโพสต์นี้!
http://www.mstechblogs.com สามารถให้ข้อมูลมาก. บทความจะถูกเขียนอย่างมืออาชีพ. ผมสนุกกับการอ่าน http://www.mstechblogs.com ได้ทุกวัน.
ขอบคุณเพื่อน!
อ๋อ – ขอบคุณสำหรับการนี้. ฉันต้องใช้ในการจับจาก try / catch – ลองมี Item.Update(). ดูเหมือนว่าจะแก้ปัญหานี้ starnge. มันเป็นปัญหาเป็นระยะ ๆ แล้ว?
Thanks.It is helping me….