Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hi All,

Please help me.

I was converted my project 32 bit to 64 bit, then after debugging project i am getting error like this.

Could not load file or assembly 'SampleDemo.Business64, Version=1.0.5336.22555, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Could any one help me to solve this error..
Posted
Updated 13-Aug-14 22:40pm
v2
Comments
Sergey Alexandrovich Kryukov 11-Aug-14 3:40am    
Why not converting everything to AnyCPU? This is a preferred target; everything else is only needed when you have dependency on some native code or assembly already targeted to any concrete instruction-set architecture.
You provide no information on that SampleDemo.Business64 and your project, so...
—SA

1 solution

Your project/assembly SampleDemo.Business64 must be configured with Any CPU or x64 option. If you're using Oracle Data Access from Oracle you must use the Oracle.ManagedDataAccess that supports 32 and 64 bits.

Hope it helps.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900