Sitecore Experience Analytics错误:值不能为null或为空。参数名称:partialViewName

时间:2016-11-14 16:40:02

标签: c# asp.net-mvc sitecore sitecore8.2

将sitecore从8.1升级到8.2后面临访问sitecore / shell仪表板的一些问题,它在CMS上启用xDb后开始抛出错误。我已经完成了他们的标准配置,但无法找出原因。

以下是访问/ sitecore

时看到的例外情况
    [ArgumentException: Value cannot be null or empty.
Parameter name: partialViewName]
   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +474
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
   Sitecore.Web.UI.Controls.Common.Renderings.Rendering.Render(HtmlTextWriter output) +773
   Sitecore.Web.UI.Controls.ComponentBase.Render() +128
   Sitecore.Web.UI.Controls.Common.Renderings.ControlsExtension.Rendering(Controls controls, HtmlHelper`1 htmlHelper, String renderingItemId, String controlId, String dataSource, Object parameters) +648
   Sitecore.ExperienceAnalytics.Client.RenderingHelper.CreateRenderingAt(String renderindItemId, String controlId, String parent, Object parameters, String datasource, String contentPlaceholder) +97
   Sitecore.ExperienceAnalytics.Client.RenderingHelper.MakeLineChart(String controlId, String parent, String data, String placeholderProperty, String strMetrics) +808
   ASP.<>c__DisplayClass4.<EmbedChart>b__1(String entry) in d:\Sitecore82\SitecoreCMS8.2_V0.4\sitecore\shell\client\Applications\ExperienceAnalytics\Common\Layouts\Renderings\ExperienceAnalyticsLineChart.cshtml:35
   Sitecore.ExperienceAnalytics.Client.RenderingHelper.MakeAdvancedExpander(String controlId, String parent, String title, Boolean isCollapsible, Action`1 nextControl) +214
   ASP.<>c__DisplayClass2.<EmbedChart>b__0(TextWriter __razor_helper_writer) in d:\Sitecore82\SitecoreCMS8.2_V0.4\sitecore\shell\client\Applications\ExperienceAnalytics\Common\Layouts\Renderings\ExperienceAnalyticsLineChart.cshtml:24
   ASP._Page_sitecore_shell_client_Applications_ExperienceAnalytics_Common_Layouts_Renderings_ExperienceAnalyticsLineChart_cshtml.Execute() in d:\Sitecore82\SitecoreCMS8.2_V0.4\sitecore\shell\client\Applications\ExperienceAnalytics\Common\Layouts\Renderings\ExperienceAnalyticsLineChart.cshtml:13
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +125
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +353

[InvalidOperationException: Error while rendering view: '/sitecore/shell/client/Applications/ExperienceAnalytics/Common/Layouts/Renderings/ExperienceAnalyticsLineChart.cshtml' (model: 'Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel, Sitecore.ExperienceAnalytics.Client').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +906
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +445
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +20
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +219
   Sitecore.Mvc.Presentation.ItemRenderer.Render(TextWriter writer) +307
   Sitecore.Web.UI.Controls.Common.ItemRenderers.ItemRenderer.RenderItem(TextWriter output, Item item) +355
   Sitecore.Web.UI.Controls.Common.ItemRenderers.ItemRenderer.Render(HtmlTextWriter output) +201
   Sitecore.Web.UI.Controls.ComponentBase.Render() +128
   Sitecore.Web.UI.Controls.Common.ItemRenderers.ControlsExtension.ItemRenderer(Controls controls, Rendering rendering) +225
   ASP._sitecore_shell_client_Business_Component_Library_Layouts_Renderings_Common_SubAppRenderes_SubAppRenderer_cshtml.Execute() +383
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +125
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +353

无法确定由于配置不匹配或sitecore错误导致问题的原因?

2 个答案:

答案 0 :(得分:0)

可能存在多个问题。

  • 检查Sitecore文件夹中是否包含所有文件。看起来你遗漏了一些东西(安装Sitecore 8.2。比较它的Sitecore文件夹和你的应用程序。你可以使用Winmerge或KDiffTool)
  • 尝试打开/ Sitecore / login或/ sitecore / shell可以打开吗?
  • 您的网站有效吗?
  • 验证/比较应用程序和Sitecore 8.2中Bin文件夹中的DLL。
  • 验证/比较应用程序和Sitecore 8.2的App_Config文件夹中的Config文件。

答案 1 :(得分:0)

由于某些项目的跳过持续时间安装,因此管理解决问题。因此尝试在新数据库中重新安装并且错误消失了。