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

"Report is unavailable or session has expired" after web deployment

7 Answers 235 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 07 Jan 2010, 10:09 PM
Help! I am supposed to demo some reporting tomorrow but after deploying to my web server I get the error:

"Report is unavailable or session has expired"

The reports are built into their own class library. Then I use the report viewer in a web page to view the report.

This works perfectly on my development machine running locally. But, after compiling and deploying I get the above error.

Help!!!

7 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 07 Jan 2010, 10:20 PM
After looking through some KB articles and forum posts I found a suggestion to set the session mode to cookieless. This does make the reports work, but the solution is unacceptable as it mangles the URL.

Is there something else I need to configure to make this work?
0
Chavdar
Telerik team
answered on 08 Jan 2010, 03:57 PM
Hello James,

Have you tried to open the web page with different browsers (e.g IE, Firefox, Opera, Safari, etc.) or on a different machine after the deployment? If the issue is reproducible with every configuration then the problem is with the web application or the configuration of the virtual directory on the web server. If the issue happens only with a particular browser and on a particular machine then you should check whether its cookies are not disabled, e.g: IE8: Enable/Disable Cookies. If it is the first case, then, please let us know if you are making something specific in the application or whether you have set some specific setting for the virtual directory. It will be also appreciated if you open a support ticket and send us a sample project with instructions how to reproduce the issue locally.

Kind regards,
Chavdar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 08 Jan 2010, 04:20 PM
Based on your ideas I did a but more testing.

We are an IE shop, we use IE 7 and 8. I've found that on 2 different different machines, one running IE 7 and Vista, the other running IE 8 and Win7 I get the problem.

If I use Firefox on the Vista machine it works.

On IE I attemped to change the cookies settings as you suggested. But, the setting you suggested only apply to the Internet zone, this is an Intranet zone application, so the setting do not affect it. I did adjust the security setting on the security tab to the lowest for Intranet zone and this didn't seem to help.

I also attempted another test. I connected to my development machine (Win7) from the Vista Machine. And it works.

So this doesn't seem to be an issue with the web browser. This seems to be an issue with the deployment, or the web server configuration. I do not believe there is anything goofy in the settings on the web server. Do you have any suggestions on what to look for?
0
Chavdar
Telerik team
answered on 08 Jan 2010, 06:11 PM
Hello James,

Please, try another experiment with accessing the web application through localhost and through the computer's name. If there is difference you can check in the net for problems with cookies and localhost or something else more relevant to your problem. Unfortunately we have not experienced such an issue locally and do not have an exact answer for this problem except to make guesses.

All the best,
Chavdar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 14 Jan 2010, 07:46 PM
Alright, after a few days distraction I was able to get back to this problem.

As you suggested I tried to access the report from the server it is hosted on as localhost, and it worked. From the same server, if I try it with the server name I get the same issue with the:

Report is unavailable or session has expired.
--------------------------------------------------------------------------------

Please, refresh the page.

Error. Any ideas what to try next?

Also, I have opened a support ticket #273424

Thanks,
James

0
James
Top achievements
Rank 1
answered on 15 Jan 2010, 04:25 PM
I have figured this out. You guys must be doing something different with the way you name cookies. The problem was that the server name had an underscore in it.

I don't imagine this stuff hapens on the real web, but our staging and development servers happened to have underscores.

I renamed the server and it works fine now!
0
Alberto
Top achievements
Rank 1
answered on 24 Oct 2012, 05:24 PM
Thank you James, very helpfull tip.
I would expect Telerik to have mentioned this in the KB they refer everywhere else regarding this issue. It would have saved me a few hours.
Thanks again.
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Chavdar
Telerik team
Alberto
Top achievements
Rank 1
Share this question
or