This is a migrated thread and some comments may be shown as answers.

Report is unavailable or session has expired.

1 Answer 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasad
Top achievements
Rank 1
Prasad asked on 10 Aug 2011, 11:55 PM

Hello:
Any help is appreciated with this error.

I do not get this error when I run the report on my local machine, but only when I deploy it to a different server (Win 2K8 R2).

I researched on the web and found that there is no support yet for MVC 3, but I was wondering whether anyone out there had the issue and found a solution.

Please let me know any specific information regarding the application that will help you answer.

Here is the code for my view:
==

 

<%

@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BVReport>" %>

<%

@ Register Assembly="Telerik.ReportViewer.WebForms, Version=5.0.11.510, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"

Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

<

script runat="server">

protected override void OnPreRender(EventArgs e)

{

rvReport.Report = ViewData.Model;

base.OnPreRender(e);

}

</

script>

<!

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<

html>

<head runat="server">

<title>BVReport</title>

<style type="text/css">

html#html, body#body, form#form1, div#content, center#center

{

border: 0px solid black;

padding: 0px;

margin: 0px;

height: 100%;

}

</

style>

</head>

<body>

<form id="Form1" runat="server">

<telerik:ReportViewer Width="100%" Height="100%" ID="rvReport" runat="server" />

</form>

</body>

</html>

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Aug 2011, 03:02 PM
Hello Prasad,

The code and markup you have provided are correct and we can confirm that the suggested approach from this code library (Using Telerik Web ReportViewer in ASP.NET MVC application) works with MVC 3. In case you're using the Razor view, check the following blog post that offers a working solution.

For the error from the subject, providing us with details like what session you use, is your app in a web farm scenario or not are highly appreciated.

We have a KB article that elaborates on this error here: Report is unavailable or session has expired error message that could provide pointers for the problem. Additionally since you state the problem occurs only when deploying to the server, check the Deploying Web Applications help article.

Greetings,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Prasad
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or