Platform Not Supported Exception was unhandled (Console Application)

Exception: An unhandled exception of type ‘System.PlatformNotSupportedException’ occurred.

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

Note: Exception occurs while executing code in console application.

1

Resolution: Follow below steps to resolve this exception.

Step 1: Go to Project Settings.1

Step 2: Click on Build –> Platform Target from Any CPU to x64.1

Step 3: Now save and close the current file, then try again to execute the console application by pressing F5 and your exception would be resolved.

Thanks for giving the specious time to read this blog. Click on like button if this blog helped you in any way or give your valuable comments for the betterment.. 🙂

 

Leave a comment