RDLC的部署(无法找到Microsoft.ReportViewer.ProcessingObjectModel.dll文件)

rdlc 相比微软的其他产品来说,做得还真是够烂的了,比水晶报表也烂得多。 但不知为何我还是宁可先择 rdlc。并且渐渐上手了。

rdlc 和水晶报表一样存在部署的问题。

尤其是Microsoft.ReportViewer.ProcessingObjectModel.dll这个文件,你在计算机上直接查找是没有的,我找了好长时间查发现下面的方法,听好用的,给大家分享下。

如果服务器不受你控制,可以把和 ReportViewer 相关的 dll 拷出来,再上传到网站的 bin 目录下:

运行:cmd

cd C:WINDOWSassembly

dir

cd gac_msil

dir *reportview* /s

copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Common9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.Common.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Common.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.Common.resources.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Design9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.Design.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Design.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.Design.resources.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.ProcessingObjectModel9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.ProcessingObjectModel.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WebDesign.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WebDesign.resources.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WebForms.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WebForms.resources.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WinForms.dll C:
copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WinForms.resources.dll C:

原文地址:https://www.cnblogs.com/ZGQ-VIP/p/11766766.html