Microsoft report 部署问题

来源:互联网 发布:大数据需要学什么专业 编辑:程序博客网 时间:2024/05/17 03:10

最近用 微软 rdlc 报表部署的时候遇到了问题

接连提示各种找不到 could not load  xxxfile。。。。

主要包括:

Microsoft.ReportViewer.ProcessingObjectModel.dll 

 Microsoft.ReportViewer.Common.resources.dll  

Microsoft.ReportViewer.DataVisualization.dll

Microsoft.ReportViewer.WinForms.dll


 Microsoft.Sqlserver.Types  

\Microsoft.ReportViewer.WinForms.resources.dll

等等

主要解决思路 就是在开发环境  找到 这些dll文件 部署到运行环境。

需要注意的是


1、版本一定要对应。  vs 不同版本对应的dll 不同用。看报错提示 找对应版本的dll文件!!!!

2、Microsoft.ReportViewer.ProcessingObjectModel.dll Microsoft.ReportViewer.DataVisualization.dll 这些是在文件系统中找不到的!!

需要使用命令去对应位置提取!位置 在 c:\WINDOWS\assembly\GAC_MSIL\下 使用 命令行格式 去指定位置能够找到 ! 用dir命令很容易找到

下面是命令 举例:

@XCOPY /I /Y %SYSTEMDRIVE%\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll %destFolder%\



参考 http://www.cnblogs.com/taoys/archive/2011/07/01/2095608.html

0 0
原创粉丝点击