我在C面板的RDLC中遇到此错误,但在IIS中没有 [英] I'm getting this error in my RDLC in C panel but not in IIS

查看:55
本文介绍了我在C面板的RDLC中遇到此错误,但在IIS中没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Type: Inner exception
Error: 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.





我尝试了什么:



RDLC报告(.pdf)在IIS中正常工作但在我的C面板中我遇到了这个问题



类型:内部异常

错误:无法加载文件或程序集'Microsoft.ReportViewer.WebForms,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件。



What I have tried:

RDLC Report(.pdf) is working correctly in IIS but in my C Panel i'm getting this issue

Type: Inner exception
Error: 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.

推荐答案

在解决方案资源管理器中的项目中,确保已单击显示所有文件图标。

在参考部分单击参考Microsoft.ReportViewer.WebForms并查看属性窗口(如果该窗口不可见,只需按F4)



找到复制本地属性并将其更改为 True



这应确保将文件复制到与可执行文件相同的文件夹
In your project in the Solution Explorer, make sure you have clicked the "Display All Files" icon.
In the references section click on the reference Microsoft.ReportViewer.WebForms and look at the Properties window (if that window is not visible just hit F4)

Find the "Copy Local" property and change it to True

This should ensure that the file is copied to the same folder as the executable


这篇关于我在C面板的RDLC中遇到此错误,但在IIS中没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆