无法加载文件或程序集'Microsoft.ReportViewer.ProcessingObjectModel,版本= 10.0.0.0 [英] Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0
问题描述
使用带有rdlc的MVC5生成pdf,它在localhost中工作正常,但是当我尝试将应用程序分发到服务器时,当我尝试生成报告时,它会出错,提示缺少某些组装……..
Using MVC5 with rdlc to generate pdf, it's working fine in localhost, but when i deply the application to server when i try to generate report it has error that some assebly are missing.....
"/webapp"应用程序中的服务器错误.
Server Error in '/webapp' Application.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
到目前为止已安装
webs服务器iis 2012
webs server iis 2012
1- SQLSysClrTypes 2- ReportViewer
1- SQLSysClrTypes 2- ReportViewer
在重新启动服务器后仍在打印报告服务器错误时
after reboot server still while printing the report server error
推荐答案
您可能在bin文件夹中缺少此程序集.如果您在全局程序集缓存(GAC)中引用它,可能会发生这种情况.在Visual Studio中检查项目引用,找到该程序集,按F4(您将看到它的属性),然后将Copy Local
设置为true.在这种情况下,程序集将始终复制到bin文件夹中.
You are probably missing this assembly in bin folder. This can happen if you reference it in Global Assembly Cache (GAC). Check your project references in Visual Studio, find this assembly, press F4 (you will see it's properties), then set Copy Local
to true. In this case the assembly will always be copied to bin folder.
这篇关于无法加载文件或程序集'Microsoft.ReportViewer.ProcessingObjectModel,版本= 10.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!