Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable

Kate picture Kate · Dec 20, 2013 · Viewed 19.8k times · Source

I'm writing a console app for SharePoint 2013 on a 64-bit machine. I get this error when I try to execute the program:

"Microsoft SharePoint is not supported in 32-bit process. Please verify that you are running in a 64-bit executable."

Please let me know if you've had this problem in the past and can help. Thank you!

Answer

RobSky picture RobSky · Dec 20, 2013

Have you checked the the properties for your project? (solution explorer, right click on the project, click on properties) On the build tab check for that you select "Any CPU".