1

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

System.TypeInitializationException 未被用户代码处理 HResult=-2146233036 Message='WindowsStoreDevTour.NorthwindIBEntities' 的类型初始化程序引发了异常。Source=WindowsStoreDevTour TypeName=WindowsStoreDevTour.NorthwindIBEntities StackTrace:在 WindowsStoreDevTour.NorthwindIBEntities..ctor(Boolean shouldConnect, String dataSourceExtension, EntityServiceOption entityServiceOption, String compositionContextName) 在 WindowsStoreDevTour.DataService..ctor() 在 WindowsStoreDevTour.DataService.get_Instance() 在 WindowsStoreDevTour。 ListPage.d__0.MoveNext() InnerException: System.TypeInitializationException HResult=-2146233036 Message='IdeaBlade.EntityModel.EntityMetadataStore' 的类型初始化程序引发了异常。来源=IdeaBlade.EntityModel。WinRT TypeName=IdeaBlade.EntityModel.EntityMetadataStore StackTrace:在 IdeaBlade.EntityModel.EntityMetadataStore.get_Instance() 在 IdeaBlade.EntityModel.EntityRelation.get_MetadataStore() 在 IdeaBlade.EntityModel.EntityRelation.InitializeEntityRelations(Assembly assembly) 在 WindowsStoreDevTour.NorthwindIBEntities..cctor( ) InnerException: System.Reflection.ReflectionTypeLoadException HResult=-2146232830 Message=无法加载一种或多种请求的类型。检索 LoaderExceptions 属性以获取更多信息。Source=mscorlib StackTrace:在 IdeaBlade 的 System.Reflection.RuntimeAssembly.get_DefinedTypes() 中的 System.Reflection.RuntimeModule.GetTypes(RuntimeModule 模块)。2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 来源,Func`2 谓词)在 IdeaBlade.Core.PlatformResolver.Resolve[T](Boolean throwIfNotFound) 在 IdeaBlade.Core.AppEnv.get_Current() 在 IdeaBlade.EntityModel.EntityMetadataStore..ctor() 在 IdeaBlade.EntityModel.EntityMetadataStore ..cctor() 内部异常:

我不知道如何解决它。

4

1 回答 1

1

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

我们会尽快修复样品。

于 2014-06-28T00:07:43.917 回答