Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:24:40+00:00 2026-06-08T13:24:40+00:00

Possible Duplicate: Loading x86 or x64 assembly I’m trying to compile Any CPU .NET

  • 0

Possible Duplicate:
Loading x86 or x64 assembly

I’m trying to compile Any CPU .NET project, but I have to link SQLite library which has different versions for x86 and x64 platforms. Changing only DLL versions to x64 doesn’t help, application doesn’t start, I need to recompile code using x64 reference.
When I add both x86 and x64 references it fails to compile, because of conflicts.
I can’t compile application using x86, because one of the system COM libraries I’m using doesn’t work under WOW64.

All 32-bit VSS applications (requesters, providers, and writers) must run as native 32-bit or 64-bit applications. Running them under WOW64 is not supported

http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/eadf5dcd-fbd1-4224-9a56-b5843efebb15/

so I need to build Any CPU project, but the only solution to this problem I see at the moment is having duplicate projects for x86 and x64. Is there anything better?

UPDATE

When I reference x64 libraries in project, but try to load x86 libraries I get the following exception.

The located assembly's manifest definition does not match the assembly reference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:24:42+00:00Added an answer on June 8, 2026 at 1:24 pm

    The main problem was the fact that I was using different versions of SQLite for x86 and x64.
    I added method

    static private Assembly SQLitePlatformSpecificResolve(object sender, ResolveEventArgs args)
    {
        string platform = Environment.Is64BitProcess ? "x64" : "x86";
        string assemblyName = new AssemblyName(args.Name).Name;
        string assemblyPath = Path.Combine(
            Environment.CurrentDirectory, "SQLite", platform, assemblyName + ".dll");
    
        return !File.Exists(assemblyPath) ? null : Assembly.LoadFrom(assemblyPath);
    }
    

    And set event handler

    AppDomain.CurrentDomain.AssemblyResolve += SQLitePlatformSpecificResolve;
    

    in main application entry point.
    Now it loads x86 assembly for x86 platforms and x64 on 64 bit platforms correspondingly.

    Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Error loading Active Record gem with sinatra app using RVM I have
Possible Duplicate: Can I use predefined namespaces when loading an XDocument? I have following
Possible Duplicate: Dynamically loading a class in Java hi i am trying to create
Possible Duplicate: Jquery IE6 hover problems, keeps loading background image. Hello I am trying
Possible Duplicate: Dynamically loading an external CSS file I'm trying to create a dynamic
Possible Duplicate: Javascript callback when IFRAME is finished loading? Is there any way to
Possible Duplicate: Change the URL in the browser without loading the new page using
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: C/C++ Image Loading I need a C\C++ cross-platform library for loading/displaying images(jpg,gif,png,tga).
Possible Duplicate: Css and javascript Not Loading in rewrite rule After using only rewrite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.