无法加载我从未添加的文件或程序集“Microsoft.SharePoint.Library”
问题描述:
我一直在开发与SharePoint Online实例连接的.NET Web应用程序。一切都进行得很顺利,直到我突然开始收到以下错误无法加载我从未添加的文件或程序集“Microsoft.SharePoint.Library”
Could not load file or assembly 'Microsoft.SharePoint.Library, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
这是我从来没有加入到项目中的文件或程序集。我只通过的NuGet
- JohnHolliday.Caml.Net.SharePoint
- SharePoint.Client
- SharePoint.Client.Runtime
- SharePoint.Client.Search
任何帮助将不胜感激。
UPDATE
安装SharePoint服务器2013客户端组件SDK包括以下
Microsoft.Office.Client.Education.dll
Microsoft.Office.Client.Policy.dll
Microsoft.Office.Client.TranslationServices.dll
Microsoft.SharePoint.Client.dll
Microsoft.SharePoint.Client.DocumentManagement.dll
Microsoft.SharePoint.Client.Publishing.dll
Microsoft.SharePoint.Client.Runtime.dll
Microsoft.SharePoint.Client.Search.Applications.dll
Microsoft.SharePoint.Client.Search.dll
Microsoft.SharePoint.Client.Taxonomy.dll
Microsoft.SharePoint.Client.UserProfiles.dll
Microsoft.SharePoint.Client.WorkflowServices.dll
不幸的是,没有Microsoft.SharePoint.Library。
UPDATE
最后解决了问题。项目的bin文件夹中有一个SharePoint.dll,一旦删除,该项目就能正常运行。
好留言@Nino。下载并安装SharePoint客户端组件。不幸的是,错误仍然显示。 –
@SeanDooley检查程序集(只需导航到c:\ windows \ assembly)如果你有这些库(和正确的版本), – Nino
无法找到c:\ windows \ assembly中的Microsoft.SharePoint.Library –