ReportViewer:Javascript Error When trying url access

来源:互联网 发布:数据泄露防护 编辑:程序博客网 时间:2024/05/24 15:39

---------------------------
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

 

 

原创粉丝点击