【问题标题】:SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFF (E_UNEXPECTED) in SharepointSPException:灾难性故障(来自 HRESULT 的异常:Sharepoint 中的 0x8000FFF (E_UNEXPECTED)
【发布时间】:2010-05-17 05:59:13
【问题描述】:

一段时间以来,我一直在尝试以编程方式将自定义内容类型及其自定义列从一个网站复制到另一个网站,但每次我总是遇到不同的错误或异常。经过更多尝试,在单击自定义内容类型中新复制的自定义列后,我从 Sharepoint 收到了更多奇怪和神秘的异常。我检查了日志,这就是我得到的:

Unknown SPRequest erorr occurred. More information: 0x80070002
Unable to locate the xml-definition for FieldName with FieldId 'guid without braces', exception: Microsoft.SharePoint.SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFF (E_UNEXPECTED)) ---> System.Runtime.InteropServices.COMException...
... at Microsoft.SharePoint.Library.SPRequestInternalClass.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt 32 lcid, Object varIdBytes...
Failed to find the content type schema for ct-1033-0x1000blahblahblahcontenttypeId while caching feature data.
Unknown SPRequest error occurred.  More informationL 0x8000ffff
Unable to locate the xml-definition for CType with SPContentTypeId '0x0100MorecontenttypeId', exception: Microsoft.SharePoint.SPException: Catastrophic failure(Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure...
... at Microsoft.SharePoint.Library.SPRequestInternalClass.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt 32 lcid, Object varIdBytes...

找不到很多内容类型架构。我对 Sharepoint 在这里尝试做的事情感到困惑,以及为什么将自定义内容类型从一个网络复制到另一个网络的简单过程与网络上的信息相比不起作用,例如this.

感谢任何帮助解决这个问题。谢谢。

【问题讨论】:

    标签: sharepoint sharepoint-2007 content-type


    【解决方案1】:

    内容类型在必须驻留在文件系统(在 12 个配置单元中)的 XML 文件中定义。如果您想将一个内容类型从一个 Web 应用程序复制到另一个,您必须确保这些定义也被复制。
    我建议您在每个目标 Web 应用程序上安装包含这些自定义内容类型的功能。

    问候, M

    【讨论】:

    • 我通过 SharePoint 手动创建了自定义内容类型和自定义列,然后以编程方式将它们复制到新网站。我可以在 12 个蜂巢的什么地方找到它们?
    猜你喜欢
    • 2016-07-06
    • 1970-01-01
    • 2014-07-18
    • 2011-10-01
    • 1970-01-01
    • 2016-03-21
    • 1970-01-01
    • 2010-12-04
    • 1970-01-01
    相关资源
    最近更新 更多