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

Silverlight Report Viewer - Report is Unavailable or Session is Expired

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 18 Jan 2011, 07:04 PM
I have had an issue with the Report Viewer giving us the error:  Report is unavailable or session is expired.
I have noticed many have had this issue when deploying their app.  my issue is happening on local host.

Methods already tired to solve the issue without success:
  • Your  WcfRiaServiceApplication1  example works on our machine.  
  • And we have attempted to copy/try the exact same setup.  
  • Tried 3 different different data sources, LinqToSql, entityDataSource, and objectDatasource.  
    All work fine on report preview mode. All fail when running the project.
  • I have tripple checked all refrences on web and client sides.
  • Tripple checked the .svc file.
    <%@ ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" %>
  • Tried both local and Azure Databases... both work on preview both fail on run.
  • We tried Q3 and Q2 releases.
  • We looked through all form posts and most are related to ASP.net not Silverlight.
  • We have run debugging and have seen the debugger runs to the actual report.cs file successfully without errors.
  • Our test case is very small amount of data without paging..
  • We noticed many form resonses discussig  session state and app pools however, your demo does not change any of that and still works.  We have matched config file as easy as possible. 
  • We have tested IE firefox and Chrome.
  • We have attached our config file for reference ( minus passwords ).

Differences between our project and your project WcfRiaServiceApplication1
Our application is of template Silverlight Busienss Application
We are using ASP.net authorization
We are also using authentication=forms where your webconfig does not have that listed.
Our database is coming form SqlAzureDB.














1 Answer, 1 is accepted

Sort by
0
john
Top achievements
Rank 1
answered on 21 Jan 2011, 07:51 PM
Our issue was the followign:

We had the two lines inserted in our Applicaiton_Startup Method:
HttpWebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
HttpWebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);

This had been a workaround we needed for some reason to get it to work as an Azure Hosted Service... for some reason it is no longer needed... so removing these two lines gets rid of the "Report is Unavailable or Session is Expired Problem"



Tags
General Discussions
Asked by
john
Top achievements
Rank 1
Answers by
john
Top achievements
Rank 1
Share this question
or