我有一个使用 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;
When you run ReportViewer.exe, the following files are installed in the Global Assembly Cache folder on the deployment computer.
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 网络应用程序中删除 ReportViewer,仍在寻找 ReportViewer dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20637042/