C# 正在从.NET web应用程序中删除ReportViewer,仍在查找ReportViewer dll

C# 正在从.NET web应用程序中删除ReportViewer,仍在查找ReportViewer dll,c#,asp.net,.net,dll,reportviewer,C#,Asp.net,.net,Dll,Reportviewer,我有一个使用ReportViewer的web应用程序,我正试图从中删除ReportViewer及其所有依赖项 就我所见,我已经删除了所有我需要的东西,所有的作品在本地都很好。但是,当我部署到我们的QA服务器并运行站点时,会出现以下错误: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutr

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

就我所见,我已经删除了所有我需要的东西,所有的作品在本地都很好。但是,当我部署到我们的QA服务器并运行站点时,会出现以下错误:

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


有关更多说明,请参阅。

检查异常,查看它发生在哪一行。我猜您需要检查您的web.config,因为它仍然可能引用ReportViewer控件。我已经检查了这两件事-在应用程序启动时调用Castle.Windsor.WindsorContainer.Register时引发异常,并且在我的web.config中没有对ReportViewer控件的引用。您看到了吗是否尝试检查machine.config文件?请参阅“是”,我已选中,但它未在计算机中引用。配置您是否可以在没有报表查看器引用的情况下重新发布站点,并将已发布的dll和aspx页面粘贴到QA服务器中。。。。