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

  • Home
  • SEARCH
  • 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 7988831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:34:21+00:00 2026-06-04T12:34:21+00:00

I have two 3rd party assemblies. One is compiled for x86 target, another one

  • 0

I have two 3rd party assemblies. One is compiled for x86 target, another one – for ANY CPU.
Is there a way to use them from the same application.

Now my application is compiled successfully but fails to run. I tried to build my EXE file for both x86 and Any CPU but no luck.
I could use corflags to change the target platform bits, but the assemblies are signed and I do not want to change their signature.

Could anyone help?

  • 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-04T12:34:23+00:00Added an answer on June 4, 2026 at 12:34 pm

    You can reference them – but the application will only run if the entry .exe assembly is set to x86 or it’s set to Any CPU and run on an x86 machine. In the case of IIS-hosted processes, then the bitness is determined by IIS itself.

    By way of example – I’ve just created this vs2010 solution: https://docs.google.com/open?id=0Bw_NnV9fhgmgSGxGOEZXSnVsd1k

    The console app can be x86/Any APU and references two libraries – one that is x86 and one that is Any CPU.

    If you set the exe to x86 and run it on x64 then it works fine (obviously it works on x86 no problems). If, however, you set the exe to Any CPU and run it on x64 it will crash (with a BadImageFormatException). Again, running it on x86 will still work.

    It’s the flavour of the entry assembly that determines the bitness of the process; and therefore the expected bitness of any assemblies that can be loaded.

    In your case, It’s possible that the assemblies you’re focussing on aren’t necessarily the problem – it’s assemblies that they reference. The exception might tell you more.

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

Sidebar

Related Questions

I have two 3rd party libraries. One just has a build for armv6 and
I have two WCF clients consuming a 3rd party web service. These two clients
What is best practice to use and distribute 3rd party jars? Approach one: Keep
I have a 3rd party .a library, which is apparently compiled for only armv6
I have a .Net4 WinForms app that references 3rd party .Net2 assemblies, which contain
I have two 3rd party libraries A.so and B.so that I am linking together
I have to use two native libraries: one is my own and the other
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two DropDownListBoxes one is called ddlDay and the other is ddlMonth. As
I have two stored procedures I wish to use in my stored procedure, but

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.