我有一个使用ReportViewer的Web应用程序,试图从中删除ReportViewer及其所有依赖项。

据我所知,我已删除了所需的所有内容,并且在本地一切正常。但是,当我部署到我们的质量检查服务器并运行该站点时,出现以下错误:

System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
The system cannot find the file specified.


我怀疑系统中的其他dll取决于ReportViewer.WebForms.dll,但是我无法确定哪个。不能直接从应用程序中的任何位置引用此dll。

有谁知道哪些dll通常引用ReportViewer.WebForms.dll?

最佳答案

我认为dll驻留在GAC中,导致此错误。根据MSDN;


  当您运行ReportViewer.exe时,将安装以下文件
  部署计算机上的“全局程序集缓存”文件夹。
  
  
    Microsoft.ReportViewer.Common.dll
    Microsoft.ReportViewer.ProcessingObjectModel.dll
    Microsoft.ReportViewer.WebForms.dll
    Microsoft.ReportViewer.WinForms.dll
    Microsoft.ReportViewer.DataVisualization.dll
  


请参阅http://msdn.microsoft.com/en-us/library/ms251723.aspx以获得更多说明。

关于c# - 从.NET Web应用程序删除ReportViewer,仍在寻找ReportViewer dll,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20637042/

10-11 06:24