We are getting Error
No parameterless constructor defined for this object. at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()
at Telerik.ReportViewer.WebForms.SerializableReportDocument.GetDeserializedReport()
at Telerik.ReportViewer.WebForms.SerializableReportSourceWrapper.get_ReportSource()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Binding datatable to telerik:ReportViewer
using Telerik.Reporting;
/// <
summary
>
/// Summary description for VersionHistory.
/// </
summary
>
public partial class RptVersionHistory : Report
{
public RptVersionHistory(DataTable dtable )
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
this.textBox8.Name = "Title";
this.textBox2.Name = "Version";
this.textBox3.Name = "Created By";
this.textBox7.Name = "Created Date";
this.textBox5.Name = "Modified By";
this.textBox4.Name = "Modified Date";
this.textBox1.Name = "Title";
this.DataSource = dtable;
//
// TODO: Add any constructor code after InitializeComponent call
//
}
In sharepoint application page in Page_Load calling as..
if (!this.IsPostBack)
{
InstanceReportSource reportSource = new InstanceReportSource
{ ReportDocument = new RptVersionHistory(this.DataTable) };
this.ReportViewer1.ReportSource = reportSource;
}
It’s working fine in Dev. Server but not on production it showing above error anyone knows how to find out error?