asp.net - Reporting Services 2008 R2 javascript errors when using date parameters -


I am running Javascript errors on my SQL Server Reporting Services R2 reports under IIS 7. Reports are running on the same server in the form of IIS Viewer Controls is built into an iframe of a MVC 1.0 page for a Classic ASP.Net page (although the same problem occurs when I run the report page on my own).

I have not added custom javascript on additional reports to say so, only stock javascript comes with the report viewer control on the page.


Under Firefox 4, when I run a report with a date parameter, the report runs fine with the default dates, if I change them, I get these errors: .

  frames.ReportViewerTouchSession0.location Null Document.getElementById ("ReportViewer_ctl00") is ParametersController is undefined   

The report automatically by post or manually Does not trigger one through the "View report" button.

IE8 I get this:

  'document .getElementById (...). ParametersController 'Null or not an object   

IE8's debugger breaks at some random location in ViewState.

The error of IE9 is different (is when you click on the date picker):

  Unable to get the value of the property 'ToggleVisibility': the object is unable or undefined property To get the value of 'HideActiveDropDown': The item is empty or   

Again, debugger can not give me a useful line number in any source code.

There are no 404 network errors which can indicate the script is not being loaded. There is no effect between

asyncRendering property true and wrong .

I've found that you need to transfer the web of the Web to the Web Config


I'm tearing out my hair with this!


For completeness, here's the page for asp.net code:

  & lt;% @page language = "c #" AutoEventWireup = "true "Codebehind =" Report.aspx.cs "Inherits =" Tenders.Web.Report "% & Gt; & Lt;% @ register assembly = "Microsoft.ReportViewer.WebForms, version = 9.0.0.0, culture = neutral, publicKeyToken = b03f5f7f11d50a3a" name = "Microsoft.Reporting.WebForms" tagprefix = "rsweb"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" action = "/ report.aspx" runat = "server" & gt; & Lt; ASP: Script Manager id = "Script Manager" Runat = "Server" enabled poweredRendering = "True" Script mode = "Release" & gt; & Lt; / ASP: ScriptManager & gt; & Lt; Asp: UpdatePanel ID = "Report WeaverPT" Runat = "Server" & gt; & Lt; ContentTemplate & gt; & Lt; Rsweb: report viewer id = "report wise" runat = "server" width = "100%" processing mode = "local" interactive.postbackmode = "always asynchronous" asyncRendering = "true" & gt; & Lt; / Rsweb: ReportViewer & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; / Form & gt; & Lt; / Body & gt;   

It appears that I use the wrong version Report viewer control was done by Microsoft.ReportViewer.WebForms assembly from v9 to v10 project and web Conflict reference has been changed to change.

Check out this connect bug for more information (rebuild bugs and demos including demo projects):

Comments