SharePoint 2010 加载 TaxonomyPicker.ascx 失败 补充,
SharePoint2010 安装好之后,查看应用日志,会发现这样的错误日志:
加载控件模板文件 /_controltemplates/TaxonomyPicker.ascx 失败: 未能从程序集“Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”中加载类型“Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker”。
网上的解决方法大都数是用记事本打开_Controltemplates/TaxonomyPicker.ascx
替换“#44;” 为“,”
<%@ Control className="TaxonomyPickerControl" Language="C#" Inherits="Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker#44;Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
第一行改为:
<%@ Control className="TaxonomyPickerControl" Language="C#" Inherits="Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker, Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
但很多情况下,并没有解决问题,其实是TaxonomyFieldAdded 没有被激活
我们可以通过STSADM命令或PowerShell脚本激活它。
For example :
STSADM -o activatefeature -n TaxonomyFieldAdded -url
STSADM -o activatefeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -url http://<server> -force.
Enable-SPFeature -id "73EF14B1-13A9-416b-A9B5-ECECA2B0604C" -Url <Site-URL>