0

I have an vb.net application build in ViusalStudio2010. I am using an oracle database and after a change of the oracle.dataaccess client from a 32bit client to a 64bit client and changing the corresponding vb.net-platform values i have problems to debug the application. When I build the application, i can start the builded .exe-file without problems. But debugging via VisualStudio does not work, I get the following error message:

Error executing the project: The file or assembly "MyProjectName" or one of its dependencies not found. An attempt was made to load a program with an incorrect format.

The aim-CPU in Visual Studio is on x64, the compiling plattform too, as you can see in the following pictures.

Here are the compiling values: compiling values

more compiling properties, including aim-cpu

And here the one for debugging: enter image description here

What is wrong?

irene
  • 445
  • 4
  • 13

1 Answers1

0

Clean the solution & then rebuild it again!

Rohit
  • 11
  • 1
  • may be you are missing some of your files from solution. are you migrating your project to upper version of .net framework? – Rohit Jul 05 '16 at 09:47
  • I have deleted all bin and obj folders, but no change. – irene Jul 05 '16 at 10:10
  • 1
    ran into this many times. Typically because the server has a different version than my PC. I normally code my stuff in one version then change the version when I deploy to the server. More of a work around. – coder32 Jul 05 '16 at 13:40