This is driving me bananas -- I've got a web app with an existing report being displayed by version 10 of the ReportViewer without a problem. We're expanding the site, and I've created a new report based an a second local business object (we're integrating with NetSuite web services). The page loads and requests the data, which is passed back just fine - but, the page throws an exception in the generated markup when trying to create the ReportViewer instance: Microsoft JScript runtime error: 'Microsoft' is undefined.
Clicking continue loads the page with error text:
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.webServer/handlers section for Internet Information Services 7 or later.
I'm running this localhost with VS ASP.Net runtime server. Obviously, the first report viewer couldn't load its report if my web config wasn't right, so that can't be it.
I did get the second report to load one time successfully, but many subsequent attempts all result in the above. I've tried deleting the report on the new page, and copying in the one that works from the original page, pointing to its report/data source, and I get the same result. Baffling!