In this post, we will discuss how to resolve the issue which comes when we try to run a windows application in SharePoint 2016. Recently I was doing a demo in windows application (Server Object Model / Microsoft.SharePoint.dll) in visual studio 2015.
When I run the application it gives me an error as:
System.PlatformNotSupportedException occurred in Microsoft.SharePoint.dll.
An unhandled exception of type ‘System.PlatformNotSupportedException’ occurred in Microsoft.SharePoint.dll
Additional information: Microsoft SharePoint is not supported in the 32-bit process. Please verify that you are running in a 64-bit executable.
The error looks like below:
To resolve this issue follow the below steps:
Right click on the Project -> Properties.
Then in the Properties page, open Build tab and then uncheck “Prefer 32-bit” in Platform target section like below:
Remember SharePoint 2016 support only 64 Bit.
Then you run the application it should be working fine.
Hope this will be helpful.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: