【问题标题】:Server Error: Problem Loading webpart服务器错误:加载 Web 部件时出现问题
【发布时间】:2010-01-20 08:11:42
【问题描述】:

我正在尝试将 OneViewCalendarWebpart 添加到我的网站。当我尝试从库中添加 Web 部件时出现以下错误。

“/”应用程序中的服务器错误。

值不能为空。 参数名称:g 说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.ArgumentNullException:值不能为空。 参数名称:g

来源错误:

在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。

堆栈跟踪:

[ArgumentNullException:值不能为空。 参数名称:g] System.Guid..ctor(字符串 g)+7452814 Microsoft.GroupBoard.WebControls.CalendarViewControlTraverser.GetListFromCalendarControl() +62 Microsoft.GroupBoard.WebControls.CalendarViewControlTraverser.get_IsSRList() +8 Microsoft.GroupBoard.WebControls.GbwListDeterminer.OnInit(EventArgs e) +83 System.Web.UI.Control.InitRecursive(控件命名容器)+333 System.Web.UI.Control.InitRecursive(控件命名容器)+210 System.Web.UI.Control.AddedControl(Control control, Int32 index) +198 System.Web.UI.ControlCollection.Add(控制子)+80 Microsoft.SharePoint.WebControls.SPCalendarView.CreateChildControls() +644 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +44 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

【问题讨论】:

    标签: sharepoint sharepoint-2007


    【解决方案1】:

    ListName 属性似乎未初始化,但 webpart 尝试读取它(据我了解,您遇到了 Microsoft GroupBoard Workspace webpart 的问题)。

    据我回忆,从我玩“GroupBoard”解决方案的那一刻起,这些 webpart 必须从代码中添加,而不能从 Webpart 库中添加。看看这篇博文中的 cmets:http://www.spelements.com/blog/2009/01/printing-sharepoint-lists-calendars/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-07-18
      • 1970-01-01
      • 1970-01-01
      • 2016-09-29
      • 2023-03-09
      • 2020-04-27
      • 2014-05-28
      相关资源
      最近更新 更多