错误消息:报表查看器Web控件尚未注册 [英] Error Message: Report Viewer Web Control Has Not Been Registered

查看:69
本文介绍了错误消息:报表查看器Web控件尚未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2005开发人员环境中使用报表查看器控件运行报表时一切正常。当我将应用程序放在已部署的服务器上时,我收到以下错误消息...

When I run my report using the report viewer control in the Visual Studio 2005 developer environment, everything works fine.  When I place the app out on the deployed server, I get the following error message...

报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册。添加< add verb =" *"路径= QUOT; Reserved.ReportViewerWebControl.axd" type =" Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms,Version = 8.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a" />到web.config文件的system.web / httpHandlers部分。

我检查了Web.config,这段代码已经存在。我需要做些什么才能让报表查看器控件在部署的服务器上运行?

I checked the Web.config and this code is already in there.  What do I need to do to get the report viewer control to work on the deployed server?

谢谢,

Ken

推荐答案

我似乎已经纠正了这个问题。如果其他人有类似情况,我所做的就是添加"Microsoft.ReportViewer.WebForms"。作为构建的一部分。为此...

在Visual Studio 2005中...

In Visual Studio 2005...


突出显示项目,右键单击并选择属性

Highlight the project, right click and select properties

在左侧导航栏中,突出显示参考。

On the left hand nav, highlight references.

点击"添加参考"

向下滚动并突出显示" MicrosoftReportViewer.WebForms"。

Scroll down and highlight "MicrosoftReportViewer.WebForms".

点击"确定"

点击"更新"

点击"应用"

点击"确定"

重建并重新部署项目。


如果有人有更好的方法来解决这样的问题,我会非常有兴趣听到它。

If anyone has a better way to resolve something like this, I'd be very interested in hearing about it.


这篇关于错误消息:报表查看器Web控件尚未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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