I'm trying to upload files to sharepoint, in a desktop C# application. The script is being used to deploy .jar modules to the company sharepoint page.
When I try to use this code:
SPWeb web = new SPSite(sharePointSite).OpenWeb();
I get the error:
Could not load file or assembly 'Microsoft.SharePoint.Library, Version=220.127.116.11, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
It's the exact same problem as this person here: https://stackoverflow.com/questions/45410221/could-not-load-file-or-assembly-microsoft-sharepoint-library-which-ive-never
They installed the components, like I did, and still weren't able to run the application.
Their final update was:
Finally resolved the issue. There was a SharePoint.dll in the bin folder of the project that once deleted, the project was able to run as normal.
which really does not help.....
I've read about there being a client and object model, and there being different DLL's for each.
But, I'm very confused, and can't find appropriate docs.