Entity Framework Windows XP Hatası?
-
17 Nisan 2012 Salı 13:33
Selamlar;
EF ile bir WPF uygulaması geliştirdim. Windows 7 ortamında herhangi bir hata almaksızın uygulamam DB'ye bağlanmakta ve veri çekebilmekte. Ancak Windows XP'de uygulamayı çalıştırdığımda EF işlemi anında (select gibi) "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." hatası alıyorum.
Catch'te yakaladığım hata raporu şu şekilde:
Source :mscorlib
konum: System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
konum: System.Reflection.RuntimeModule.GetTypes()
konum: System.Reflection.Assembly.GetTypes()
konum: System.Data.Metadata.Edm.ObjectItemAttributeAssemblyLoader.LoadTypesFromAssembly()
konum: System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load()
konum: System.Data.Metadata.Edm.ObjectItemAttributeAssemblyLoader.Load()
konum: System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData)
konum: System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors)
konum: System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
konum: System.Data.Metadata.Edm.ObjectItemCollection.ImplicitLoadAssemblyForType(Type type, EdmItemCollection edmItemCollection)
konum: System.Data.Metadata.Edm.MetadataWorkspace.ImplicitLoadAssemblyForType(Type type, Assembly callingAssembly)
konum: System.Data.Common.Utils.MetadataHelper.TryDetermineCSpaceModelType(Type type, MetadataWorkspace workspace, EdmType& modelEdmType)
konum: System.Data.Common.Utils.MetadataHelper.TryDetermineCSpaceModelType[T](MetadataWorkspace workspace, EdmType& modelEdmType)
konum: System.Data.Common.Utils.MetadataHelper.GetAndCheckFunctionImportReturnType[TElement](EdmFunction functionImport, MetadataWorkspace workspace)
konum: System.Data.Objects.ObjectContext.ExecuteFunction[TElement](String functionName, MergeOption mergeOption, ObjectParameter[] parameters)
konum: System.Data.Objects.ObjectContext.ExecuteFunction[TElement](String functionName, ObjectParameter[] parameters)
konum: Bayi_Bildirim_Raporu.bayitakip_dbEntities.Select_ArizaKayitlari()
konum: Bayi_Bildirim_Raporu.Ariza.SelectAll()
Target :System.Type[] GetTypes(System.Reflection.RuntimeModule)
Message :İstenilen türlerden biri veya daha fazlası yüklenemedi. Daha fazla bilgi için LoaderExceptions özelliğini alın. (Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.)
er Ex :XP'de de uygulamayı başarılı şekilde nasıl çalıştırabilirim?
Teşekkürler.
Tüm Yanıtlar
-
18 Nisan 2012 Çarşamba 08:17
Ben sanırım aynı hatayı asp.net projemde almıştım. EntityDataSet lerimin ContextTypName lerini set edince problem çözüldü.
Mustafa Torun
- Yanıt Olarak Öneren MustafaTorun 25 Nisan 2012 Çarşamba 07:35
- Yanıt Olarak İşaretleyen Emre GunerturkModerator 02 Mayıs 2012 Çarşamba 11:54
-
18 Nisan 2012 Çarşamba 08:42Teşekkürler.