Here is the exact error that is reported when telerik and the session state are configured(it's attached as image file). When using telerik reporting tool..I'm using sql datasouces to get values and here is the all code that I used..I used designer part to create the report page..
This is code for aspx page which has Report Viewer
and this is the aspx.cs codebehind part of the page
namespace
TelerikReporting
{
using
System;
using
System.ComponentModel;
using
System.Drawing;
using
System.Windows.Forms;
using
Telerik.Reporting;
using
Telerik.Reporting.Drawing;
using
System.Configuration;
using
System.Data.SqlClient;
using
DataService.ConnectionFactory;
public
partial
class
PropRep : Telerik.Reporting.Report
{
public
PropRep(
int
ID)
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
this
.ReportParameters[
"ID"
].Value = ID;
PropTest.Parameters[
"@ID"
].Value = ID;
PropTest.ConnectionString = ConnectionFactory.GetConnectionString(ConnectionType.SQLConnection);
//
// TODO: Add any constructor code after InitializeComponent call
//
}
}
}
This is code for aspx page which has Report Viewer
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
Width
=
"100%"
Height
=
"800px"
runat
=
"server"
></
telerik:ReportViewer
>
</
div
>
</
form
>
</
body
>
</
html
>
and this is the aspx.cs codebehind part of the page
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
public
partial
class
Reporting_Report : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
if
(Request.QueryString[
"PID"
] !=
null
)
{
int
ID = Convert.ToInt32(Request.QueryString[
"PID"
].ToString());
Telerik.Reporting.InstanceReportSource instanceReportSource =
new
Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument =
new
TelerikReporting.PropRep(ID);
this
.ReportViewer1.ReportSource = instanceReportSource;
}
}
}
}