【发布时间】:2017-08-16 08:04:35
【问题描述】:
我将获得许可的 select.pdf.dll 添加到我的 SharePoint 项目中。此 dll 文件已添加到 Visual Studio 参考和包部分(将目标部署为“全局程序集缓存 (GAC)”)。
我无法将我的解决方案部署到我的 sharepoint 开发服务器,并显示错误消息
“部署步骤'添加解决方案'中发生错误:错误:无法将指定的程序集添加到全局程序集缓存:Select.Pdf.dll。”
我搜索了这个问题,有人无法部署,因为他们要部署的 .dll 已存在于 %windir%\assembly 文件夹中,并且 .dll 已被其他进程锁定。 VS2015 build error: Cannot add the specified assembly to the global assembly cache https://devramblings.wordpress.com/2011/03/23/error-cannot-add-the-specified-assembly-to-the-global-assembly-cache/
但是,我要部署的“Select.Pdf.dll”以前从未部署过,%windir%\assembly 和 %windir%\Microsoft.Net\assembly 文件夹没有同名的 dll。文件。
我已尝试重新启动 VS,并重置 IIS。问题依然存在。
有什么办法可以解决这个问题吗?谢谢。
【问题讨论】:
标签: sharepoint gac