Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 224
Kate Avatar asked Dec 20 '13 19:12

Kate


3 Answers

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

like image 60
RobSky Avatar answered Nov 13 '22 20:11

RobSky


This worked for me:

In Visual Studio: TOOLS>OPTIONS>Projects and Solutions>WEB PROJECT and Use the 64 bit versions of IIS Express for web sites and projects

like image 40
Thomas Avatar answered Nov 13 '22 19:11

Thomas


I hit this problem while running a Unit Test (well, an integration test in "Unit Test" clothing). Changing the target for the unit test project just made the tests disappear from the Test Explorer. It is possible to run your tests (at least in VS2013+) as an x64 environment.

In Visual Studio, choose Test > Test Settings > Default Processor Architecture > x64.

https://msdn.microsoft.com/en-us/library/ee782531(v=vs.120).aspx

like image 8
Michael Blackburn Avatar answered Nov 13 '22 20:11

Michael Blackburn