gareth asked this 3 years ago

VS2015 warning - mismatch between the processor architecture of the project being built

I have a Visual Studio 2015, VB.NET solution that uses a Oracle.DataAccess.dll. I get the following warning when i try to compile the project. 

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Oracle.DataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=AMD64", "AMD64". 


Mark 3 years ago
6 likes

You are using a 64-bit version of Oracle.DataAccess.dll which does not work on x86 platform. You need to create a new configuration for x64 platform as below:

From menu select Build->Configuration Manager.

Create a new soultion platform and select x64 from the list

when you compile your project select this new configuration.

 

Dzung 1 year ago
Did you find the solution to fix this problem? Please give me some advices, thanks.