Search code examples
sharepoint64-bit32bit-64bit32-bit

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


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!


Solution

  • 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".