Yog koj sim hloov cov InfoPath xml ntawv kwv qauv rau cov txheej xwm/WebParts lossis los ntawm tej qhov nruab nrab.
Thaum lub Item.Update execting() yuav ua kom cov hauv qab no kev ua yuam kev. Thaum muab kho dua cov InfoPath xml ntawv nyob rau hauv ListItem
cov ntaub ntawv thiab ListItem tus kwv mus kaw.
Item.File.Update() yuav kom daws tau koj qhov teeb meem.
StackTrace ntawm kev ua yuam kev:
[COMException (0x 81020037): Cov ntaub ntawv SampleFile/SampleFile_2009-06-11T18_57_00.xml muaj tau hloov los ntawm SHAREPOINTsystem rau 13 Jun 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(Txoj hlua bstrUrl, Txoj hlua bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Txoj hlua& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Txoj hlua bstrVersion, Nruas& pvarAttachmentNames, Nruas& pvarAttachmentContents, Nruas& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0 Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Txoj hlua bstrUrl, Txoj hlua bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Txoj hlua& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Txoj hlua bstrVersion, Nruas& pvarAttachmentNames, Nruas& pvarAttachmentContents, Nruas& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +203
[SPException: Cov ntaub ntawv SampleFile/SampleFile_2009-06-11T18_57_00.xml muaj tau hloov los ntawm SHAREPOINTsystem rau 13 Jun 2009 00:25:30 +0530.] Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(Txoj hlua bstrUrl, Txoj hlua bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, Txoj hlua& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, Txoj hlua bstrVersion, Nruas& pvarAttachmentNames, Nruas& pvarAttachmentContents, Nruas& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +251 Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Nruas& objAttachmentNames, Nruas& objAttachmentContents, Boolean suppressAfterEvents) +1026 Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) +182 Microsoft.SharePoint.SPListItem.SystemUpdate() +97 Peoples.WebControls.<>c__DisplayClass1.<ExportData>b__0() +993 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Kwv xeev) +70 Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +392 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +152 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Kwv param) +345 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +86 Peoples.WebControls.CalendarExport.ExportData() +320 Peoples.WebControls.CalendarExport.ExportCalendar_Click(Kwv sender, EventArgs e) +40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(Txoj hlua eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(Txoj hlua eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, Txoj hlua eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 |
Ua tsaug rau cov xo no!
http://www.mstechblogs.com yog heev tuav. Tsab xov xwm no tso kawg sau. Kuv yeej zoo siab nyeem ntawv http://www.mstechblogs.com txhua hnub.
Tsaug buddy!
Yep – Tsaug rau qhov no. Kuv yuav tsum siv nyob rau hauv cov catch kev sim/catch – sim muaj Item.Update(). Nkawd mus daws no qhov teeb meem hauv starnge. Yog ib qhov teeb meem thawm ces?
Thanks.It tseem pab kuv….