SharePoint Debug - The file xxx has been modified by xxx on...
来源:互联网 发布:最大子数组和 动态规划 编辑:程序博客网 时间:2024/06/05 17:26
在一个文档库中,使用ItemAdded event receiver,在上传文件之后修改item的属性。但是在上传文件之后在页面上修改属性并保存的时候,出现以下错误信息:
“The file xxx has been modified by xxx on...”,截图如下所示:
具体的错误堆栈信息是:
[COMException (0x81020037): The file Doc WF Test/doc 8.docx has been modified by SHAREPOINT\system on 13 Dec 2014 17:32:06 -0800.]at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +0at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +411[SPException: The file Doc WF Test/doc 8.docx has been modified by SHAREPOINT\system on 13 Dec 2014 17:32:06 -0800.]at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish) +556at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents) +3030at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents) +632at Microsoft.SharePoint.SPListItem.UpdateOverwriteVersion()at Microsoft.SharePoint.WebControls.SaveButton.SaveItem(SPContext itemContext, Boolean uploadMode, String checkInComment)at Microsoft.SharePoint.WebControls.SaveButton.SaveItem()at Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
解决办法请参考:https://hristopavlov.wordpress.com/2008/05/14/uploading-a-file-event-receivers-the-file-has-been-modified-by/
另外一种方法:http://shireefadel.blogspot.com/2009/12/file-has-been-modified-by.html
0 0
- SharePoint Debug - The file xxx has been modified by xxx on...
- 【Xcode】file 'XXX.pch'has been modified since the precompiled header was built
- XXX.h has been modified since the precompiled header XXX has been built
- The entry 'XXX' has already been added
- file ' ' has been modified since the precompiled header ' ' was built
- fatal error: file has been modified since the precompiled header
- fatal error: file has been modified since the precompiled header
- iOS开发Debug之The certificate used to sign "XXX" has either expired or has been revoked。
- <环境>win10运行markdownpad2 报弹框: this file has been modified by another progream , ... HTML Rendering Er
- File '/Applications/Xcode has been modified since the precompiled header was built
- iOS file 'XX-Prefix.pch' has been modified since the precompiled header was built
- The certificate used to sign "XXX" has either expired or has been revoked
- IOS APP发布-The certificate used to sign "XXX" has either expired or has been revoked
- The certificate used to sign "XXX" has either expired or has been revoked
- The certificate used to sign "xxx" has either expired or has been revoked. An updated certifica
- The certificate used to sign "XXX" has either expired or has been revoked
- Xcode Error " The certificate used to sign "XXX" has either expired or has been revoked"
- 问题:The certificate used to sign "XXX" has either expired or has been revoked
- MMU 内存管理单元 <s3c2440>
- 这些年Java Android技术经验总结
- read(char[] b,int off,int len) 和read(char[] b)的区别
- 计算机专业术语总结2
- IOS文摘(2 开始)
- SharePoint Debug - The file xxx has been modified by xxx on...
- Linux下MySQL的配置
- 实验一
- PhpStorm快捷键设置/个性化设置
- poj 1828 Monkeys' Pride
- 黑马程序员--IOS_学习笔记_内存管理
- Codeforces Round #282 (Div. 1) A
- perl 连接SQL SERVER 数据库
- 生活之感悟