无法添加Microsoft.ReportViewer.WebForms的引用 [英] Can Not Add Reference of Microsoft.ReportViewer.WebForms

查看:187
本文介绍了无法添加Microsoft.ReportViewer.WebForms的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的Web应用程序崩溃了.如果我在我的web.config中添加以下内容:

Hi All,

My web application gets down. If I add following to my web.config:

<add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>






or

using Microsoft.Reporting.WebForms;



但是,我需要在应用程序中使用reportviewer来查看和发送rdlc.

如何将这些引用添加到应用程序?

问候!
Aman



However I required reportviewer in my application to view and mail rdlc.

How add these reference to application?

Regards!
Aman

推荐答案

您要同时添加版本8和版本9的查看器,并且它们都具有相同的PublicKeyToken.为您的AppPool运行在其中的dotNet版本选择正确的版本,应该没问题.
您应该通过Visual Studio这样添加引用,而不是手动添加.如果这样做,Studio将确保添加正确的版本,它将为您完成工作.
You are adding both versions 8 and 9 of the viewers, and they both have the same PublicKeyToken. Pick the correct version for the dotNet version your AppPool runs under and you should be fine.
You should add references like this through Visual Studio and not manually. If you do that, Studio will ensure that the correct version gets added and it will do the work for you.


这篇关于无法添加Microsoft.ReportViewer.WebForms的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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