我正在尝试运行 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](IEnumerable
1 来源,Func`2 谓词)在 IdeaBlade.Core.PlatformResolver.Resolve[T](Boolean throwIfNotFound) 在 IdeaBlade.Core.AppEnv.get_Current() 在 IdeaBlade.EntityModel.EntityMetadataStore..ctor() 在 IdeaBlade.EntityModel.EntityMetadataStore ..cctor() 内部异常:
我不知道如何解决它。