开发者

Different versions of Microsoft.Sharepoint.dll

开发者 https://www.devze.com 2023-03-22 07:35 出处:网络
There seem to be two versions of Sharepoint\'s DLL. I am trying to add a folder, using clientContext and updating the list. But I get an error \"use SPFileCollection.Add()\". I have seen heaps of the

There seem to be two versions of Sharepoint's DLL.

I am trying to add a folder, using clientContext and updating the list. But I get an error "use SPFileCollection.Add()". I have seen heaps of these types around t开发者_运维问答he place (starting with "SP") but they're not in my version of Microsoft.Sharepoint.dll.

What am I missing? Is there more than one version?


I'm pretty sure @leppie is right: you need the Microsoft Client Object Model libraries.

Download the redistributable from Microsoft ( http://www.microsoft.com/download/en/details.aspx?id=21786 ). Then you'll want to reference the Microsoft.SharePoint.Client.dll in your project.

And just to be thorough, Microsoft has a good introduction to the SharePoint Client Object Model.


UPDATE: I found an SP1 version of the Client Object Model redistributable. Probably should go with that instead! http://support.microsoft.com/kb/2508825

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号