ReportViewer:Javascript Error When trying url access

本文介绍了解决ReportViewer控件在IIS7环境下加载失败的问题,详细步骤包括配置虚拟目录、添加自定义处理程序等,确保ReportViewer正常工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

---------------------------
Error
---------------------------
Error: 'RSClientController' is undefined

Calling a report from the reportmanager works. The rs2005 runs on a machine with a parallel installed rs2000.

I configured the virtual directory to machinename/reports2005 & machinename/reportserver2005.

When i debug the clientscript i see that he requests a "/ReportServer2005/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.00.1399.00&Name=Scripts.ReportViewer.js" and it seems that he doesn't get the jscript file.

I tried the solution with the axd-mapping, which an user posted here before but it didn't worked for me.

any other suggestions?

 

 

---------------------------
Fixed
---------------------------

 

IIS7 (which comes with Windows Server 2008) needs an extra little something in order for the ReportViewer control to work.
 
To be clear, this change is required on the server on which the web page is hosted, not on the Reporting Services server.
  • Go to the site's virtual folder in IIS Manager
  • Go to 'Handler Mappings'
  • Click 'Add Managed Handler'
    • Request Path = 'Reserved.ReportViewerWebControl.axd' (without quotes)
    • Type = 'Microsoft.Reporting.WebForms.HttpHandler' (without quotes)
    • Name = 'Manually-added AXD Handler For Reporting Services' (without quotes) (called this for clarity)
  • Click 'Request Restrictions'
  • 'Invoke Handle only if...' CheckBox must be unticked (the default)
  • Click 'Verbs' tab
  • Select 'One of the following verbs' and enter 'GET,HEAD,POST,DEBUG' (without quotes)
  • On 'Access' tab 'Script' must be selected (the default)
  • Click 'Ok' and 'Ok' to add the handler.
  • When you click on 'View Ordered List' the new handler should automatically appear at the top of the list. This ensures that it takes precedence over the two pre-existing *.axd handlers

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值