Recently, I was trying to execute code in a Console Application, and I was having difficulties getting it to run. I received numerous errors along the way. The first issue was that Visual Studio was set up to compile the code as 32-bit. Easily resolved. The second issue was not as easy.
Here is the details and fix: