【发布时间】:2016-07-15 03:32:16
【问题描述】:
我在 Sharepoint 服务器上的 Web 部件中使用 System.Net.Http.Formatting,但出现以下错误。我知道它是 MVC 框架的一部分,我通过 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Net.Http.Formatting.dll 引用它,但 MVC 未安装在 Sharepoint 服务器上。它安装在我的开发服务器上,我的解决方案在开发服务器上运行良好,但在没有 MVC 的 Sharepoint 服务器上运行良好。有人可以告诉我如何在 Visual Studio 解决方案中引用它,这样它就可以在不安装 MVC 框架的情况下工作
使用程序集 System.Net.Http.Formatting 的解决方案是 Sharepoint Web 部件使用的类库。
Error: Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
我为程序集尝试将本地复制为 true,但我得到了同样的错误。
使用 Visual Studio 2013
【问题讨论】:
标签: c# asp.net sharepoint .net-assembly