C# 无法加载文件或程序集';Microsoft.SharePoint.Library';我';我从来没有加过

C# 无法加载文件或程序集';Microsoft.SharePoint.Library';我';我从来没有加过,c#,asp.net-mvc,sharepoint,sharepoint-online,C#,Asp.net Mvc,Sharepoint,Sharepoint Online,我一直在开发一个与SharePoint Online实例连接的.NET Web应用程序。一切都很顺利,直到我突然发现以下错误 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 f

我一直在开发一个与SharePoint Online实例连接的.NET Web应用程序。一切都很顺利,直到我突然发现以下错误

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添加了以下SharePoint软件包

  • JohnHolliday.Caml.Net.SharePoint
  • SharePoint.Client
  • SharePoint.Client.Runtime
  • SharePoint.Client.Search
任何帮助都将不胜感激

更新

已安装SharePoint Server 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

更新


终于解决了这个问题。项目的bin文件夹中有一个SharePoint.dll,一旦删除,项目就可以正常运行。

您添加的一些库,例如
SharePoint.Client
依赖于
Microsoft.SharePoint.Library


安装Sharepoint客户端组件应删除该错误。从

Good shout@Nino下载。已下载并安装SharePoint客户端组件。遗憾的是,错误仍在显示。@SeanDooley签入程序集(只需导航到c:\windows\assembly)如果您有这些库(以及正确的版本),则无法在c:\windows\assembly中找到Microsoft.SharePoint.Library