Click here to Skip to main content
11,932,103 members (60,048 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0

I've developed C# application. when I installed on PC with 64 bit. It works fine ,butt on 32 bit. It gives me error message "It is not design for 32 bit".

However, I chose the target machine is 86.
Posted 31-Dec-12 22:48pm
Not enough information, not clear.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Choose ANYCPU, or make two different builds. And be sure to have all referenced dlls matching the platform.
Some literature:[^]
Member 8584763 1-Jan-13 4:40am
I changed it ANYCPU ,but still I'm getting the same message "This product is designed for x64 platform".
Zoltán Zörgő 1-Jan-13 4:57am
Are you sure you have rebuilt all, and all dependencies are for the proper platform?
Member 8584763 1-Jan-13 5:32am
Zoltán Zörgő 1-Jan-13 5:53am
Use Depends to check it.
Member 8584763 1-Jan-13 7:10am
How to check it?
Zoltán Zörgő 1-Jan-13 12:27pm
Again: download depends from the link above, open the executable ot the target machine (where you have the problem). You will see notifications if any assambly was built wrong platform.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

AFAIK a 64bit program cannot run on a 32 bit machine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100