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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:41:38+00:00 2026-05-15T11:41:38+00:00

My program (a console application) references several other assemblies (many open-source libraries). I built

  • 0

My program (a console application) references several other assemblies (many open-source libraries). I built the assembly with the “Any CPU” option set (using VS2008). When I start the assembly from a 64-bit command prompt on a Windows Server 2008 x64 machine the process always starts as a 32-bit process!

I looked through my references and it appears as though I have a reference for a 32-bit assembly referenced. Could this single reference cause the entire assembly to start as 32-bit?

Also, I use ILMerge to merge all of the referenced assemblies into a single assembly. Maybe that has something to do with it?

Could someone help me figure out what is going on here?

  • 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-15T11:41:39+00:00Added an answer on May 15, 2026 at 11:41 am

    If you need to load a 32bit assembly, the entire process will need to be 32bit. You could target “Any CPU” for your main application, but then it will run 64bit, and fail at runtime when it tries to load the 32bit assembly.

    ILMerge is smart enough to switch the main entry assembly from AnyCPU to x86 if you have an x86 assembly as part of your merge, to prevent this from being a problem.

    If you want to run 64bit – you’ll need to have all of the assemblies be 64bit or AnyCPU.

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

Sidebar

Related Questions

I have built a console application that works okay when it references a .exe
i have console application and web application. i am calling the main program of
How do I change the program icon for a Delphi console application? The application
why in C#, console application, in program class , which is default, all methods
I have one application that prints messages from Test.exe in console .My java program
I have an existing C++ win32 console app. This application contains a main program
I have a Console Application that references the WPF dlls. I instantiated and attempted
I have a linux console application - a scientific simulation program that I use.
I needed to make a console application using nettiers class libraries. I created a
I have a .exe program (console app) written in .net. I need to execute

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.