Visual Studio Development Bookmark and Share   
 index > Visual Studio Report Controls > asp reporting - document.getElementById("ReportViewerID") returns null
 

asp reporting - document.getElementById("ReportViewerID") returns null

I am Unable to render ReportViewer on ASP.NET Web pages while running on IIS7. While I have no problem viewing your reports when running on debug mode with your Visual Studio 2008.

I encounter the following javascript error:

document.getElementById(...).Controller' is null or not an object

note that:
1) I have no Ajax control in my web page, so that the contro l name is changed or something...
2) I have added at the Add Managed Handler dialog the following :
Request path: Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms.HttpHandler
Name: Reserved-ReportViewerWebControl-axd

3) we have changed the security from itegrated to classis at the ISS and it worked fine...

and then rerun my IIS and the problem doesn't exists any more...

I am so confuesed why it does work on classic mode and not at the integrated mode?!?
any suggestion please?!?

Regards,
Khamisos

Khamisos  Tuesday, October 13, 2009 9:42 AM

I think the error that you are seeing is because there is a missing HttpHandler entry in the web.config. Make sure you have a entry for the ReportViewer HttpHandler in the <system.webServer> section of the web.config, this section is specifc to IIS7. I beliieve the entry should look something like this:

<system.webServer>
   <handlers>
      <add name="ReportViewerWebControlHandler" verb="*" path="Reserved.ReportViewerWebControl.axd" preCondition="integratedMode" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
   </handlers>
</system.webServer>



 This posting is provided "AS IS" with no warranties, and confers no rights.

Matt Meyer - MSFT  Tuesday, October 13, 2009 5:29 PM

You can use google to search for other answers

Custom Search

More Threads

• Processing and Rendering Engine
• Allow users to select and copy text
• RSClientController is not defined
• Button keeps disappearing????
• Local Report Rendering : Excel Crashes, PDF Doesn't
• How to Invoke Report viewer context menu Programatically
• Reports
• Report Wizard in VS 2008 Does Not Complete
• How to: Change Format Code on Axis
• Desing of local report Can Grow and Can Shrink don't work