Some more information, using IE developer toolbar
to watch Network activity and we noted that silverlight is calling the following URL: http://localhost:54321/reportservice/resources/getrenderstream?instanceID=7d004415-0d33-4c68-bef1-d441fdcecf4a&name=8f138b63aea0481e9526930ce214a5a4
So the silverlightviewer is not adding the
MyReportingService.svc prefix to the resources URL.
Is this a telerik bug or do we need to configure something?
We are also using a Custom Binding to avoid render timeouts on long reports:
<telerikReporting:ReportViewer ReportServiceClientFactory="{Binding ReportServiceClientFactory}"
ReportServiceUri="{Binding ReportServiceUrl}"
Report="{Binding ReportName}"
Visibility="{Binding ReportVisibility}" />
The
ReportServiceUrl binds to the same URL as defined above with
MyReportingService.svc
The
ReportServiceClientFactory binds to an instance of:
public class ReportServiceClientFactory : IReportServiceClientFactory
{
Telerik.Reporting.Service.SilverlightClient.ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress)
{
var binding = new BasicHttpBinding() // or BasicHttpBinding(BasicHttpSecurityMode.Transport) overload if SSL is used
{
MaxBufferSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
ReceiveTimeout = new TimeSpan(0, 10, 0),
SendTimeout = new TimeSpan(0, 10, 0),
CloseTimeout = new TimeSpan(0, 10, 0)
};
var endpointAddress = new EndpointAddress(remoteAddress);
return new Telerik.Reporting.Service.SilverlightClient.ReportServiceClient(binding, endpointAddress);
}
}