【问题标题】:Can't run DevForce Windows Store sample Application无法运行 DevForce Windows Store 示例应用程序
【发布时间】:2014-06-27 07:57:52
【问题描述】:

我正在尝试运行 Devforce WindowsStoreDevTour 示例应用程序。 但是我得到了这个例外:

System.TypeInitializationException 未被用户代码处理 H结果=-2146233036 Message=“WindowsStoreDevTour.NorthwindIBEntities”的类型初始化程序引发了异常。 源=WindowsStoreDevTour TypeName=WindowsStoreDevTour.NorthwindIBEntities 堆栈跟踪: 在 WindowsStoreDevTour.NorthwindIBEntities..ctor(布尔应该连接,字符串 dataSourceExtension,EntityServiceOption entityServiceOption,字符串 compositionContextName) 在 WindowsStoreDevTour.DataService..ctor() 在 WindowsStoreDevTour.DataService.get_Instance() 在 WindowsStoreDevTour.ListPage.d__0.MoveNext() 内部异常:System.TypeInitializationException H结果=-2146233036 Message='IdeaBlade.EntityModel.EntityMetadataStore' 的类型初始化程序引发了异常。 源=IdeaBlade.EntityModel.WinRT TypeName=IdeaBlade.EntityModel.EntityMetadataStore 堆栈跟踪: 在 IdeaBlade.EntityModel.EntityMetadataStore.get_Instance() 在 IdeaBlade.EntityModel.EntityRelation.get_MetadataStore() 在 IdeaBlade.EntityModel.EntityRelation.InitializeEntityRelations(装配装配) 在 WindowsStoreDevTour.NorthwindIBEntities..cctor() 内部异常:System.Reflection.ReflectionTypeLoadException H结果=-2146232830 Message=无法加载一种或多种请求的类型。检索 LoaderExceptions 属性以获取更多信息。 源=mscorlib 堆栈跟踪: 在 System.Reflection.RuntimeModule.GetTypes(RuntimeModule 模块) 在 System.Reflection.RuntimeAssembly.get_DefinedTypes() 在 IdeaBlade.Core.Reflection.ReflectionExtensions.GetAllTypes(装配组件) 在 IdeaBlade.Core.PlatformResolver.b__0[T](程序集 a) 在 System.Linq.Enumerable.d__142.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 源,Func`2 谓词) 在 IdeaBlade.Core.PlatformResolver.Resolve[T](布尔 throwIfNotFound) 在 IdeaBlade.Core.AppEnv.get_Current() 在 IdeaBlade.EntityModel.EntityMetadataStore..ctor() 在 IdeaBlade.EntityModel.EntityMetadataStore..cctor() 内部异常:

不知道怎么解决。

【问题讨论】:

  • 我们之前没见过这个问题。您能告诉我有关您的环境的任何信息 - Windows 8、Visual Studio 和 DevForce 的版本吗?您何时下载示例?
  • Windows 8.1、Visual Studio 2013、DevForce 2012。我今天从这里下载了示例:drc.ideablade.com/devforce-2012/bin/view/Documentation/…

标签: devforce


【解决方案1】:

看起来我们忘记为版本 7.2.3 中使用的较新 Microsoft.Composition 包更新 packages.config 条目。您可以通过转到 NuGet 包管理器并将此包更新到最新版本 (1.0.27) 来解决此问题。

我们会尽快修复样本。

【讨论】:

    猜你喜欢
    • 2015-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-07
    • 1970-01-01
    • 2016-04-18
    • 2015-01-31
    • 1970-01-01
    相关资源
    最近更新 更多