当前位置: 首页>>技术解读>>正文


UserAgent不可用,文件操作可能无法优化

webfans 技术解读 , , 去评论

问题描述

我有两个最初从SPS2003迁移的站点。它在SharePoint 2007甚至SharePoint 2010中运行良好,但是当我们将其迁移到SharePoint 2013时,主页会在ULS日志上引发以下错误。

5/24/2013 09:57:46.62 w3wp.exe (0x0D50) 0x1D24 SharePoint Foundation
Files ak8dj High
UserAgent not available, file operations may not be optimized. at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb) at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult)


05/24/2013 09:57:46.62 w3wp.exe (0x0D50) 0x1D24 SharePoint Foundation Cobalt ajoii Medium
Mapping Store error to Cobalt error. [Store Error: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling)


05/24/2013 09:57:46.62 w3wp.exe (0x0D50) 0x1D24 SharePoint Foundation Cobalt aintx High Failed in CobaltStream.LockBytes: ErrorException — Error: Unknown (Win32=0x80004003) — Error message: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling) at


05/24/2013 09:57:46.64 w3wp.exe (0x0D50) 0x1D24 SharePoint Foundation Files ak8dj High UserAgent not available, file operations may not be optimized. at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb) at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult) at


05/24/2013 09:57:46.64 w3wp.exe (0x0D50) 0x1D24 SharePoint Foundation Database ab1a9 High Failed to get document content data. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocParams(SqlSession session, Guid guidSiteId, Int32 cbContent, Nullable1 parentId, Guid docId, Nullable1 level, SPChunkedArray`1 rgbContent, Byte[] rgbRbsId, Int64 bsn, Byte partition, Int32 pageSize, Boolean bStartFilling) at

我在互联网上找不到与此相关的任何材料,我甚至不确定它是否必须与SPS2003兼容性做些什么。

任何帮助指针?

最佳解决思路

此错误的答案最简单。我看到我的SharePoint 2007环境中的页面是使用SharePoint Designer自定义的,一旦我将页面重置为网站定义,一切都开始工作(没有任何错误)。

我怀疑当在Designer中自定义页面时,页面的HTML脚本将通过数据库迁移进行,而SharePoint 2013不够智能,无法根据旧的定义呈现自定义页面。

学习,重置设计器自定义页面到站点定义,以防站点在迁移后抛出错误。这意味着您将不得不丢失所有自定义。

如果您找到一个,请随时发布任何更好的答案…

奇怪但真实……

参考资料

本文由朵颐IT整理自网络, 文章地址: https://duoyit.com/article/2651.html,转载请务必附带本地址声明。