无法加载文件或程序集Microsoft.ReportViewer.DataVisualization或其依赖项之一

时间:2018-03-08 23:20:17

标签: asp.net-mvc reporting-services

我正在运行MVC Web应用程序。该应用程序的一个功能是生成PDF报告。 PDF报告还显示了地图。但是,在生成PDF时,它会显示一条错误消息: -

"Could not Load File or Assembly Microsoft.ReportViewer.DataVisualization, Version = 11.0.0.0, Culture = neutral,publicKeyToken = 89845dcd8080cc91" or one of its dependencies. The System cannot find the file specified.

我们确实引用了以下三个程序集的Microsoft Report Viewer(版本11): -

Microsoft.ReportViewer.Common.dll 
Microsoft.ReportViewer.ProcessingObjectModel.dll 
Microsoft.ReportViewer.WebForms.dll 

我找不到Microsoft.ReportViewer.DataVisualization。我从哪里得到它?

2 个答案:

答案 0 :(得分:0)

以Microsof Sql Server Management Studio为例。 为什么使用旧的11版本? 您可以使用SSMS版本17.4附带的14.版本。 路径:C:\ Program Files(x86)\ Microsoft SQL Server \ 140 \ Tools \ Binn \ ManagementStudio

答案 1 :(得分:0)

v14出现此问题。必须手动从包文件夹中提取DLL: 包\ Microsoft.ReportingServices.ReportViewerControl.WebForms.140.1000.523 \ lib