Sys.WebForms.PageRequestManagerParserErrorException

Stimulsoft Reports.WEB discussion
Post Reply
ROHIT GUPTA
Posts: 7
Joined: Mon Feb 07, 2011 5:36 am
Location: INDIA

Sys.WebForms.PageRequestManagerParserErrorException

Post by ROHIT GUPTA »

Hello,

we are using Stimulsoft.Web reports in our asp.net application, on some pages we are generating reports and getting this error

"Sys.WebForms.PageRequestManagerParserErrorException"

I am not understanding why we are getting this error, i have seen all code and not understanding.

Kindly you are requested to suggest how to solve this issue.

My page source is as follws:-

<%@ Page Language="C#" MasterPageFile="~/Global/IDS.Master" Trace="false" AutoEventWireup="true" CodeBehind="frmSalesOrderReport.aspx.cs" Inherits="IDSConcrete.Reports.frmSalesOrderReport" Title="Untitled Page" %>
<%@ Register Assembly="Stimulsoft.Report.Web, Version=2012.1.1216.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a" Namespace="Stimulsoft.Report.Web" TagPrefix="cc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table style="width: 100%;">
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan="3">

<asp:Panel ID="pnlreport" runat="server" Visible= "false">
<cc4:StiWebViewer ID="StiWebViewerSalesOrder" runat="server" Height="2000px"
Width="1000px" BorderStyle="Solid" BorderWidth="1px"
DropDownMenuFontFamily="Verdana" ScrollBarsMode="True"
ViewMode="WholeReport" RenderMode="AjaxWithCache" />
</asp:Panel>

</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</asp:Content>




Code behind as


using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using IDSConcreteBAL.Report_BAL;
using Stimulsoft.Report;
using Stimulsoft;

namespace IDSConcrete.Reports
{
public partial class frmSalesOrderReport : System.Web.UI.Page
{
Report_BAL reports_BAL = null;

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int _id = Convert.ToInt32(Session["SOID"]);
LoadReport(_id);
}

}

private void LoadReport(int _id)
{
try
{
if (reports_BAL == null)
reports_BAL = new Report_BAL();

DataSet dsSalesOrderData = reports_BAL.Report_SalesOrder(_id);

if(dsSalesOrderData.Tables[0].Rows.Count > 0)
{
string reportName = Server.MapPath("~/Reports/Report_Files/SalesOrder_Detailed.mrt");
string reportDllName = Server.MapPath("~/Reports/Report_Files/SalesOrder_Detailed.dll");

StiReport report = null;
// if report dll is not exists ...
if (!System.IO.File.Exists(reportDllName))
{
// load report definition
report = new StiReport();
report.Load(reportName);
// compile report, save dll version of report
report.Compile(reportDllName);
}
else // if report assembly is available …
{
// … use it
report = StiReport.GetReportFromAssembly(reportDllName);
}
report.RegData("DSSalesOrder", dsSalesOrderData.Tables[0]);

StiWebViewerSalesOrder.Report = report;
pnlreport.Visible = true;
}
else
{

}
}
catch (Exception err)
{

}
finally
{
reports_BAL = null;
}
}
}
}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Sys.WebForms.PageRequestManagerParserErrorException

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
Post Reply