【问题标题】:Unspecified error (Exception from HRESULT (E_FAIL))未指定的错误(来自 HRESULT (E_FAIL) 的异常)
【发布时间】:2011-08-17 18:16:03
【问题描述】:

当我尝试将 PivotViewer 控件拖到 MainPage.xaml 时收到此错误。

导致我达到这一点的步骤如下......

  1. 已安装 PivotViewer SDK
  2. 创建了新的 Silverlight 业务应用程序
  3. 添加了对 System.Windows.Pivot 的引用
  4. 将此添加到我在 XAML 中的 UserControl 标记中:

    xmlns:pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"

  5. 将 PivotViewer 控件拖到 MainPage.xaml

有什么解决办法吗?

编辑这里有更多关于错误信息的信息

Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
at MS.Internal.XcpImports.Collection_Add[T](PresentationFrameworkCollection`1 collection, Object value)
at System.Windows.PresentationFrameworkCollection`1.AddImpl(Object value)
at System.Windows.PresentationFrameworkCollection`1.System.Collections.IList.Add(Object value)
at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateChildren(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, Boolean isNewInstance)

【问题讨论】:

    标签: .net silverlight pivotviewer


    【解决方案1】:

    PivotViewer 需要 Silverlight 工具包。您的项目中是否引用了该工具包?可能会因此而轰炸。

    【讨论】:

      猜你喜欢
      • 2015-03-10
      • 2013-09-21
      • 2021-06-05
      • 2020-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多