Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过SharePoint功能部署内容类型时CPU使用率高_Sharepoint - Fatal编程技术网

通过SharePoint功能部署内容类型时CPU使用率高

通过SharePoint功能部署内容类型时CPU使用率高,sharepoint,Sharepoint,我正在创建一个SharePoint功能,用于将某些内容类型(及其自定义列/字段)部署到新的SharePoint网站中 我使用了一个外部工具来为内容类型()生成CAML,但是当我将它们放入特性并运行它时,我遇到了一个问题 该功能会像我预期的那样激活,但当我尝试查看站点内容类型(/\u settings/mngctypes.aspx)时,CPU的使用率会达到100%(w3wp)并保持不变 有没有人见过这个问题并知道如何解决它?自定义列是指自定义字段?您要查看哪种内容类型的页面?所有网站内容类型的列表

我正在创建一个SharePoint功能,用于将某些内容类型(及其自定义列/字段)部署到新的SharePoint网站中

我使用了一个外部工具来为内容类型()生成CAML,但是当我将它们放入特性并运行它时,我遇到了一个问题

该功能会像我预期的那样激活,但当我尝试查看站点内容类型(/\u settings/mngctypes.aspx)时,CPU的使用率会达到100%(w3wp)并保持不变


有没有人见过这个问题并知道如何解决它?

自定义列是指自定义字段?您要查看哪种内容类型的页面?所有网站内容类型的列表,或内容类型的详细信息页面?如果是后者,您的自定义列会导致错误吗?

我以前见过,生成的XML不包含XML命名空间: 还请注意,此工具不会创建在功能中使用的100%正确的XML

错误的XML:

<XmlDocument>
<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<Display>ListForm</Display>
<Edit>ListForm</Edit>
<New>ListForm</New>
</FormTemplates>
</XmlDocument>

列表形式
列表形式
列表形式
好的XML:

<XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<Display>ListForm</Display>
<Edit>ListForm</Edit>
<New>ListForm</New>
</FormTemplates>
</XmlDocument>

列表形式
列表形式
列表形式

是的,部署是开发生命周期的一部分。有些称为列,有些称为字段:P。是的,问题是在查看内容类型页面时。添加了一些澄清最终回到这个问题上,你已经一针见血了!谢谢,救生员!这也救了我。非常感谢!