c# - 从 .NET 网络应用程序中删除 ReportViewer,仍在寻找 ReportViewer dll

标签 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=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/

相关文章:

c# - 如何将依赖项注入(inject) asp.net core 中的模型?

c# - StackExchange.Redis | TTL -2 |问题

c# - 发生压缩后GC如何更新引用

jquery - DOMContentLoaded 在 Chrome 中非常慢

c# - ASP.NET 5 beta 8 中的 Windows 身份验证支持

.net - 如何在数据网格中使用自动完成功能?

C#:如何设计一个泛型类,使得类型参数必须继承某个类?

c# - 为 PDF 渲染和分析应用程序选择跨平台库(最好使用 C#)

asp.net - 带有 PostgreSql 的 ASP Core 1。授权和认证

c# - 简化条件if语句c#