Today I got an email mentioning about a broken page editor experience after an upgrade from Sitecore 6.6 to 8. Below control
started throwing exception while rendering.
<sc:XslFile ID="xslBottomModules" Path="/xsl/Bottom.xslt" runat="server" />
Exception:
Below message is displayed where
above control is present.
On clicking the yellow triangle we get exception details as
below
System.Exception:
Could not resolve type name: Sitecore.Web.UI.WebControls.WebEditRibbon, Sitecore.Kernel
(method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode,
String[] parameters, Boolean assert)).
at Sitecore.Diagnostics.Error.Raise(String error, String method)
at Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[]
parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode,
String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[]
parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Web.UI.WebControls.XslFile.ReadXslExtensions()
at Sitecore.Web.UI.WebControls.XslFile.get_XslExtensions()
at
Sitecore.Web.UI.WebControls.XslFile.AddExtensionObjects(XsltArgumentList list,
Item item)
at
Sitecore.Web.UI.WebControls.XslFile.DoRender(HtmlTextWriter output, Item item)
Solution for this is simple as Sitecore.Web.UI.WebControls.WebEditRibbon class now moved to Sitecore.ExperienceEditor.dll in Sitecore 8.
Once we updated the below entry under <xslExtensions> in web.config everything started working fine.
<extension mode="on" type="Sitecore.Web.UI.WebControls.WebEditRibbon, Sitecore.Kernel" namespace="http://www.sitecore.net/webedit" singleInstance="true" />
Comments
Post a Comment