2012-02-03 6 views
3

私のプロジェクトでSQLite 1.0.79( "sqlite-netFx40-setup-bundle-x64-2010-1.0.79.0.exe"で64ビットのセットアップ) を使用しています。 GAC経由でSQLiteをバインドする。 しかし、XAML-Designerのスローフォロー例外で:System.BadImageFormatException VS2010 XAML-Designer



    System.BadImageFormatException 
    Die Datei oder Assembly "System.Data.SQLite, Version=1.0.79.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden. 
     bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
     bei System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
     bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) 
     bei System.Reflection.Assembly.Load(AssemblyName assemblyRef) 
     bei MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.VsReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) 
     bei Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.CachingReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) 
     bei Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Microsoft.Windows.Design.Metadata.IReflectionResolver.GetRuntimeAssembly(Assembly reflectionAssembly) 
     bei MS.Internal.Metadata.ClrAssembly.GetRuntimeMetadata(Object reflectionMetadata) 
     bei Microsoft.Windows.Design.Metadata.AttributeTableContainer.d__c.MoveNext() 
     bei Microsoft.Windows.Design.Metadata.AttributeTableContainer.GetAttributes(Assembly assembly, Type attributeType, Func`2 reflectionMapper) 
     bei MS.Internal.Metadata.ClrAssembly.GetAttributes(ITypeMetadata attributeType) 
     bei MS.Internal.Design.Metadata.Xaml.XamlAssembly.get_XmlNamespaceCompatibilityMappings() 
     bei Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations.GetXmlNamespaceCompatibilityMappings(IAssemblyMetadata sourceAssembly) 
     bei Microsoft.Windows.Design.Metadata.Xaml.XamlExtensions.GetXmlNamespaceCompatibilityMappings(IAssemblyMetadata source) 
     bei MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() 
     bei MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) 
     bei MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) 
     bei MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider, Boolean visitCodeModel) 
     bei MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) 
     bei MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() 
     bei Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() 
     bei Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() 
     bei MS.Internal.Host.PersistenceSubsystem.Load() 
     bei MS.Internal.Host.Designer.Load() 
     bei MS.Internal.Designer.VSDesigner.Load() 
     bei MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() 
     bei MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) 
     bei MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) 
     bei MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) 
     bei MS.Internal.Host.Isolation.IsolatedDesigner.Load() 
     bei MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload) 

この例外は、すべてのXAML-のファイルで発生します。 しかし、プログラムはエラーなく実行されます。

... EDIT ... 私はさえ

問題識別および解決を応答するために許可されていないよので、私は、私は唯一の64ビットのSQLiteをインストールしていた...、

を編集しましたVS2010は32ビットプロセスです。

インストールも32ビットSQLiteのが問題

答えて

1

を解決あなただけの64ビットのSQLiteをインストールしたのですが、VS2010は、32ビットプロセスです。

また、32ビットSQLiteをインストールすると問題が解決されます。

+0

@MarioR少なくとも私はあなたのために答えることができます –

+0

@MarioRあなたは今、物事に答えるいくつかのポイントが必要です;) –

関連する問題