Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
hello,
 
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 21:48pm
Comments
Sergey Alexandrovich Kryukov at 1-Jan-13 3:58am
   
Not enough information, not clear.
—SA
Rate this: bad
good
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: http://thingsthatshouldbeeasy.blogspot.hu/2009/08/anycpu-x86-x64-whats-difference.html#.UOKjPuSzKSo[^]
  Permalink  
v2
Comments
Member 8584763 at 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ő at 1-Jan-13 4:57am
   
Are you sure you have rebuilt all, and all dependencies are for the proper platform?
Member 8584763 at 1-Jan-13 5:32am
   
Yes
Zoltán Zörgő at 1-Jan-13 5:53am
   
Use Depends to check it.
Member 8584763 at 1-Jan-13 7:10am
   
How to check it?
Zoltán Zörgő at 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
good
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
0 CHill60 590
1 Sergey Alexandrovich Kryukov 467
2 OriginalGriff 285
3 PIEBALDconsult 285
4 BillWoodruff 173


Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2014
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