Getting "mismatch between the processor architecture of the project" at Visual Studio 2012

I am very new to Visual Studio 2012. I am trying to connect my Windows 8 application to MySQL on Visual Studio 2012 for my project. When I create a solution, I get the following error:

"A mismatch was found between the architecture of the processor built by the MSIL project and the processor architecture link" System.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089, processorArchitecture = AMD64 "," x86 ". This mismatch may lead to failures at runtime, please consider changing the target processor architecture of your project through Configuration Manager to align the processor architectures between your project and the links, or depend on the link with the processor architecture that matches the target processor architectures uru your project. "

So, I did a search on this issue and found this question on the site: How to fix Visual Studio compilation error, "mismatch between processor architecture"?

I tried to change according to their suggestion. I changed "Any processor" to "x86" on the "Platform", although the described interface is different from mine. But this introduced me another mistake:

The "base class or interface" System.ComponentModel.Component "in assembly 'System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089' by type" System.Data.Common.DbConnection "cannot be resolved"

Perhaps this has something to do with System.Data.dll, which I need to include in the "Links", but I do not know how to fix it. What did I do wrong?

PS. I am running on Windows 8.1 64-bit.

+4
source share

All Articles