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 785055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:48:48+00:00 2026-05-14T20:48:48+00:00

In one project we have a dependency on a legacy system and its .Net

  • 0

In one project we have a dependency on a legacy system and its .Net assembly which is delivered as a ‘x86’ and they do not provide a ‘Any CPU’ and/or 64bit one. Now the project itself juggles with lots of data and we hit the limitations we have with a forced x86 on the whole project due to that one assembly (if we used 64bit/any cpu it would raise a BadImageFormatException once that x86 is loaded on a 64bit machine).

Now is there a (workaround)way to use a x86 assembly in a 64bit .net host app? That tiny dependency on that x86 assembly makes and keeps 99% of the project heavily limited.

  • 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-05-14T20:48:48+00:00Added an answer on May 14, 2026 at 8:48 pm

    You can change this bitness of the assembly with the Corflags.exe utility. Use the Visual Studio Command Prompt shortcut, then:

     corflags /32bit- whateverthename.dll
    

    It isn’t terribly likely to work, forcing the x86 target is often done because an assembly has a dependency on unmanaged code that’s only available in 32-bit. Typically a COM server.

    In that case, your only other workaround is to run the assembly in its own process. You’ll need to write a little hosting program whose Platform Target you force to x86. You’ll need to communicate with the main program using one of the process interop mechanisms supported by .NET. Sockets, named pipes, .NET Remoting, WCF. Beware that this is not especially fast and it will be brittle when the code commonly dies from unhandled exceptions.

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

Sidebar

Related Questions

I have a script that appends some rows to a table. One of the
We manage a site for a medical charity. They have a number of links
I have a new web app that is packaged as a WAR as part
I'm working on a project in C# w/ XNA, and I want to reorganize
I've found several jQuery syntaxes for nullifying the enter on a form. First one:
My question is about memory use and objects in actionscript 2. If I have
I have several USB mass storage flash drives connected to a Ubuntu Linux computer
There doesn't seem to be any tried and true set of best practices to
I need to develop a file indexing application in python and wanted to know
Every time that I want to do a Layout, I'm getting a black layout

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.