As jy probeer om die Path XML-lêer te werk deur middel van die voorwerp model in gebeure / WebParts of deur enige medium.
Terwyl die Item.Update execting() sal veroorsaak dat die onderstaande fout. Terwyl die opdatering van die Path XML-lêer in ListItem
die lêer en ListItem voorwerp kry ontkoppel.
Item.File.Update() om jou probleem op te los.
StackTrace van fout:
[COMException (0x81020037): Die lêer SampleFile/SampleFile_2009-06-11T18_57_00.xml het verander deur SharePoint stelsel op 13 Junie 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +203
[SPException: Die lêer SampleFile/SampleFile_2009-06-11T18_57_00.xml het verander deur SharePoint stelsel op 13 Junie 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boole bAdd, Boole bSystemUpdate, Boole bPreserveItemVersion, Boole bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boole bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boole bCheckOut, Boole bCheckin, Boole bMigration, Boole bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boole bAdd, Boole bSystem, Boole bPreserveItemVersion, Boole bNoVersion, Boole bMigration, Boole bPublish, Boole bCheckOut, Boole bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boole suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boole bSystem, Boole bPreserveItemVersion, Guid newGuidOnAdd, Boole bMigration, Boole bPublish, Boole bNoVersion, Boole bCheckOut, Boole bCheckin, Boole suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object staat) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated Secure) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(wag terugbel Secure, Object param) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated Secure) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Voorwerp sender, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boole includeStagesBeforeAsyncPoint, Boole includeStagesAfterAsyncPoint) +1565 |
Dankie vir die plaas hierdie!
http://www.mstechblogs.com is baie insiggewend. Die artikel is baie professioneel geskryf. Ek geniet die lees van http://www.mstechblogs.com elke dag.
Dankie buddy!
Yep – Thanks for this. I have to use this in the catch of try/catch – try contains Item.Update(). Seems to solve this starnge issue. Is it a sporadic issue then?
Thanks.It is helping me….