Sitecore 8.2.3 预览错误。体验编辑器,升级后功能区错误
Sitecore 8.2.3 preview error. Experience editor, ribbon error after upgrade
7.5 已转换为 8.2.3。网站在浏览器上运行。
但是当我在内容编辑器中预览页面时,页面上出现此错误:
页面的url = sitecore/client/Applications/ExperienceEditor/Ribbon.aspx?sc_content=core&ribbonId=
[InvalidOperationException: Could not locate type
'Sitecore.Shell.Client.Speak.Layouts.Renderings.Resources.Pipelines.PipelineRenderingModel,Sitecore.Speak.Bootstrap3'.
Model reference:
'Sitecore.Shell.Client.Speak.Layouts.Renderings.Resources.Pipelines.PipelineRenderingModel,Sitecore.Speak.Bootstrap3']
Sitecore.Mvc.Presentation.ModelLocator.GetModelFromTypeName(String
typeName, String model, Boolean throwOnTypeCreationError) +244
Sitecore.Mvc.Pipelines.Response.GetModel.GetFromRenderingItem.Process(GetModelArgs
args) +38 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName,
PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String
pipelineName, TArgs args) +195
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String
pipelineName, TArgs args, Func2 resultGetter) +161<br>
Sitecore.Mvc.Presentation.Rendering.GetModel() +280<br>
Sitecore.Mvc.Presentation.Rendering.get_Model() +30<br>
Sitecore.Mvc.Extensions.ObjectExtensions.ValueOrDefault(T source,
Func
2 resultGetter) +57
Sitecore.Mvc.Presentation.ViewRenderer.get_Model() +150
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +221
[InvalidOperationException: Error while rendering view:
'/sitecore/shell/client/Speak/Layouts/Renderings/Resources/Pipelines/Pipeline.cshtml'.
] Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer)
+792 Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer
renderer, TextWriter writer, RenderRenderingArgs args) +147
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs
args) +75 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName,
PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String
pipelineName, TArgs args) +195
Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String
placeholderName, TextWriter writer, RenderPlaceholderArgs args) +183
(Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName,
PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String
pipelineName, TArgs args) +195
Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String
placeholderName) +258
ASP._sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml.Execute()
+1681 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper,
String partialViewName, Object model, ViewDataDictionary viewData)
+136 Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +309
[InvalidOperationException: Error while rendering view:
'/sitecore/shell/client/Speak/Layouts/Layouts/Speak-Layout.cshtml'
(model: 'Sitecore.Mvc.Presentation.RenderingModel, Sitecore.Mvc'). ]
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +792
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer
renderer, TextWriter writer, RenderRenderingArgs args) +147
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs
args) +75 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName,
PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String
pipelineName, TArgs args) +195
Sitecore.Mvc.Presentation.RenderingView.Render(ViewContext
viewContext, TextWriter writer) +301
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
+375 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1
filters, Int32 filterIndex, ResultExecutingContext preContext,
ControllerContext controllerContext, ActionResult actionResult) +88<br>
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1
filters, Int32 filterIndex, ResultExecutingContext preContext,
ControllerContext controllerContext, ActionResult actionResult) +831
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1
filters, Int32 filterIndex, ResultExecutingContext preContext,
ControllerContext controllerContext, ActionResult actionResult) +831<br>
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext
controllerContext, IList
1 filters, ActionResult actionResult) +81
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult
asyncResult) +36
Sitecore.Speak.Bootstrap3 是问题所在。在 7.5 中,体验编辑器使用此 SDK 进行了自定义。我们在升级过程中忘记了它。升级很顺利,但没有改变 Core DB 中体验编辑器的定制。因此出现了这个问题。我们通过从 8.2.3 的原始安装中获取相应的项目 (21E86498-6C8E-4F3B-83F2-B49E5E0ABE16) 并安装升级的 sitecore 包来解决它。
我们通过在 Core DB 中搜索 'Sitecore.Speak.Bootstrap3' 文本得到了项目 (21E86498-6C8E-4F3B-83F2-B49E5E0ABE16)。
7.5 已转换为 8.2.3。网站在浏览器上运行。 但是当我在内容编辑器中预览页面时,页面上出现此错误:
页面的url = sitecore/client/Applications/ExperienceEditor/Ribbon.aspx?sc_content=core&ribbonId=
[InvalidOperationException: Could not locate type 'Sitecore.Shell.Client.Speak.Layouts.Renderings.Resources.Pipelines.PipelineRenderingModel,Sitecore.Speak.Bootstrap3'. Model reference: 'Sitecore.Shell.Client.Speak.Layouts.Renderings.Resources.Pipelines.PipelineRenderingModel,Sitecore.Speak.Bootstrap3'] Sitecore.Mvc.Presentation.ModelLocator.GetModelFromTypeName(String typeName, String model, Boolean throwOnTypeCreationError) +244
Sitecore.Mvc.Pipelines.Response.GetModel.GetFromRenderingItem.Process(GetModelArgs args) +38 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +195
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args, Func2 resultGetter) +161<br> Sitecore.Mvc.Presentation.Rendering.GetModel() +280<br> Sitecore.Mvc.Presentation.Rendering.get_Model() +30<br> Sitecore.Mvc.Extensions.ObjectExtensions.ValueOrDefault(T source, Func
2 resultGetter) +57
Sitecore.Mvc.Presentation.ViewRenderer.get_Model() +150
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +221[InvalidOperationException: Error while rendering view: '/sitecore/shell/client/Speak/Layouts/Renderings/Resources/Pipelines/Pipeline.cshtml'. ] Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +792 Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +147
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +75 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +195
Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +183
(Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +195
Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +258
ASP._sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml.Execute() +1681 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +136 Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +309[InvalidOperationException: Error while rendering view: '/sitecore/shell/client/Speak/Layouts/Layouts/Speak-Layout.cshtml' (model: 'Sitecore.Mvc.Presentation.RenderingModel, Sitecore.Mvc'). ]
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +792 Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +147
Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +75 (Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +479
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +195
Sitecore.Mvc.Presentation.RenderingView.Render(ViewContext viewContext, TextWriter writer) +301
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88<br> System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +831
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +831<br> System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
1 filters, ActionResult actionResult) +81
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) +36
Sitecore.Speak.Bootstrap3 是问题所在。在 7.5 中,体验编辑器使用此 SDK 进行了自定义。我们在升级过程中忘记了它。升级很顺利,但没有改变 Core DB 中体验编辑器的定制。因此出现了这个问题。我们通过从 8.2.3 的原始安装中获取相应的项目 (21E86498-6C8E-4F3B-83F2-B49E5E0ABE16) 并安装升级的 sitecore 包来解决它。
我们通过在 Core DB 中搜索 'Sitecore.Speak.Bootstrap3' 文本得到了项目 (21E86498-6C8E-4F3B-83F2-B49E5E0ABE16)。