Sharepoint的"无法加载文件或程序" "该系统找不到指定的文件" [英] Sharepoint "Could not load file or assembly" "The system cannot find the file specified"
问题描述
我已经添加到一个dll(sharpPDF)一提到我的.NET项目。在代码它捡起DLL,我可以使用它。当我由SharePoint的WebPart我碰到下面的错误部署:
I have added a reference to a dll (sharpPDF) to my .net project. In the code it has picked up the dll and I can use it. When I deploy by sharepoint webpart i get the following error:
Could not load file or assembly 'sharpPDF, Version=1.0.3511.18105, Culture=neutral,
PublicKeyToken=f099e668beaaa0f9' or one of its dependencies. The system cannot find the
file specified.
我部署使用STSDEV web应用程序。我试图清理出C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET文件但这并没有解决问题。
I am deploying the webapp by using STSDEV. I have tried clearing out C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files but this does not solve the problem.
任何想法可能会错误?
推荐答案
您需要确保该 sharpPDF
dll是注册在GAC。
You need to make sure that the sharpPDF
dll is registered in the GAC.
到%WINDOWS%\assembly
。如果 sharpPDF
不存在与版本 1.0.3511.18105
,你需要给它的服务器上安装到GAC。只需将其拖动到Windows资源管理器文件夹,它应该自行安装。
Go to %Windows%\assembly
. If sharpPDF
isn't there with version 1.0.3511.18105
, you need to install it to the GAC on the server. Simply drag it into that folder in Windows Explorer, and it should install itself.
这篇关于Sharepoint的"无法加载文件或程序" "该系统找不到指定的文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!