我继承了一个基于 Habitat (Sitecore 8.2 Update 6) 的骨架 Sitecore 项目,但是当我访问 /sitecore url 时出现错误:
Parser Error Message: Unknown server tag 'sc:PlatformFontStylesLink'.
在为网站提供服务的文件夹中,我使用了由新的 Sitecore Instance Manager 实例提供的 web.config(这将由 Habitat 进行转换)
sc:PlatformFontStylesLink 是 Sitecore 本身使用的控件,因此由于某种原因它无法解析服务器标签。我猜这是由于配置问题,但我不确定到底是什么。web.config 包括这一行:
<add tagPrefix="sc" namespace="Sitecore.Web.UI.WebControls" assembly="Sitecore.Kernel" />