Hello,
Parameters are not loading at first time or ReportViewer presents a "Report is unavailable or session has expired." error message. After pressing the "Refresh report" button report is always presented correctly.
It happens like once per several tries, but still and it is unacceptable in a business solution.
Raport is generated dynamically, and all parameters are passed from ViewModel in this way:
We've already changed the default HTTPBinding settings in the ReportViewer
and in the webconfig where the ReportService is placed as well:
however the problem still exists.
Any ideas?
Parameters are not loading at first time or ReportViewer presents a "Report is unavailable or session has expired." error message. After pressing the "Refresh report" button report is always presented correctly.
It happens like once per several tries, but still and it is unacceptable in a business solution.
Raport is generated dynamically, and all parameters are passed from ViewModel in this way:
private void RenderReportMethod(RenderBeginEventArgs rbea)<br> { if (rbea != null) { rbea.ParameterValues["Number"] = Invoice.Number;
.....(other parameters)..... } }We've already changed the default HTTPBinding settings in the ReportViewer
ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress) { var binding = new BasicHttpBinding() { MaxBufferSize = int.MaxValue, MaxReceivedMessageSize = int.MaxValue, ReceiveTimeout = new TimeSpan(0, 15, 0), SendTimeout = new TimeSpan(0, 15, 0) };
var endpointAddress = new EndpointAddress(remoteAddress);
return new ReportServiceClient(binding, endpointAddress);
}and in the webconfig where the ReportService is placed as well:
<bindings> <basicHttpBinding> <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxStringContentLength="2147483647"/> </binding> </basicHttpBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior"> <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services>however the problem still exists.
Any ideas?