Iam binding the dataset to my telerik report dynamically .I have been useing the code like this in report.cs
namespace
JBA.TelerikReports
{
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
using System.Data.SqlClient;
using System.Data;
/// <summary>
/// Summary description for Report_Score.
/// </summary>
public partial class Report_Score : Report
{
public static DataSet MyDS;
public Report_Score()
{
/// <summary>
/// Required for telerik Reporting designer support
/// </summary>
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
public Report_Score(DataSet ds)
{
MyDS = ds;
}
private void Report_Score_NeedDataSource(object sender, System.EventArgs e)
{
(sender
as Telerik.Reporting.Processing.Report).DataSource = MyDS;
}}}
and
iam passing the dataset to report from my asp.net application like this
Dim r1 As JBA.TelerikReports.Report_Score = New JBA.TelerikReports.Report_Score(ds)
it is working fine for some time ,now it is showing error in browser like this
Server Error in '/' Application.
Parameter is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Parameter is not valid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
regards
HR