ReportViewer not working in vs2010 framework4
I cannot get my reports to work when combined with a master page. I have a webpage with a reportviewer that has always worked in VS2008 framework3.5. However, When I rebuild this for vs2010 it looks like this: <%@ Page Title="" Language="VB" MasterPageFile="~/TopMenu.master" AutoEventWireup="false" CodeFile="TestControl2.aspx.vb" Inherits="TestControl2" %> <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <rsweb:ReportViewer ID="ReportViewer1" runat="server" CssClass="CornwallReports" Height="475px" ProcessingMode="Remote" Width="900px"> <ServerReport ReportPath="/Cornwall/Reports/FindSales" ReportServerUrl="http://Geronimo/reportserver" /> </rsweb:ReportViewer> </asp:Content> Whilst the report will initially open, when I enter a value in a text box that is passed as a parameter to the report it returns the following error: "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed." and a scriptresource.axd page with a ton of code that stops at the throw error line below. function Sys$WebForms$PageRequestManager$_endPostBack(error, executor, data) { if (this._request === executor.get_webRequest()) { this._processingRequest = false; this._additionalInput = null; this._request = null; } var handler = this._get_eventHandlerList().getHandler("endRequest"); var errorHandled = false; if (handler) { var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems : {}, executor); handler(this, eventArgs); errorHandled = eventArgs.get_errorHandled(); } if (error && !errorHandled) { throw error; } Nevertheless the report works fine under the following circumstances: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestControl1.aspx.vb" Inherits="TestControl1" %> <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <rsweb:ReportViewer ID="ReportViewer1" runat="server" CssClass="CornwallReports" Height="475px" ProcessingMode="Remote" Width="900px"> <ServerReport ReportPath="/Cornwall/Reports/FindSales" ReportServerUrl="http://Geronimo/reportserver" /> </rsweb:ReportViewer> </div> </form> </body> </html> <html My problem is that I cannot get my reports to work on my site embedded with the normal menus within a master page. It seems there is some problem with the scriptmanager and master pages but after a whole day of mucking about I thought I would ask if anyone has any ideas why my reportviewer and reports won't work with master pages; I also have loads of reports and if they don't work I have real problem. Thanking any of you geniuses in advance Peter
September 7th, 2010 4:15am

I am having exactly the same problem. I saw you got no answer, but did you figure something out on your own?
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 10:42pm

I'm faccing the same problem =/ Everyone solved that?
February 11th, 2011 11:22am

Try setting your ScriptManager to this < asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode ="Release"> </asp:ScriptManager> I have a master page with two Content sections. This is just one of many differences between VS08 and VS10. Another one will be the parameter passing between the master RDLC and all subreports. Hope this helps.
Free Windows Admin Tool Kit Click here and download it now
March 21st, 2011 12:42am

Try setting your ScriptManager to this < asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode ="Release"> </asp:ScriptManager> I have a master page with two Content sections. This is just one of many differences between VS08 and VS10. Another one will be the parameter passing between the master RDLC and all subreports. Hope this helps. yes ,i think so.but,this fuction is no to solve the problem.
May 30th, 2011 2:35am

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed." For me, setting AsyncRendering to false in the report viewer control helped. But when you want to navigate or refresh the report you get the same error.
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2012 7:39pm

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed." For me, setting AsyncRendering to false in the report viewer control helped.
November 3rd, 2012 9:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics