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

GetRenderStream url

3 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 23 Jan 2013, 04:31 PM
How does the telerik resource service determine the url to use in the call to getrenderstream? Images are not appearing in my report because the getrenderstream url is including a port number, which is causing the connection to be refused. If I manually execute the same url without the port number, the image resource is loaded correctly. There is no mention of a port number anywhere in any of my web.configs, and none of the other service calls include a port number (including telerik report service calls). Is there a way I can force the resource service to not include the port?

3 Answers, 1 is accepted

Sort by
0
Chris Gillies
Top achievements
Rank 1
answered on 24 Jan 2013, 03:37 PM
Does this happen on VS web server or IIS, do you have a port assigned for your application or some URL rewriter in place?
Other places to look for port are ReportServiceUri and the address attribute of the endpoints, in your case the resource endpoint.

Cheers!
0
Robert
Top achievements
Rank 1
answered on 29 Jan 2013, 01:47 PM
We're using a virtual IP and an F5 BIG-IP Local Traffic Manager in front of a cluster of two web servers. I guess the issue could on the F5 end, but why is a port even being sent at all? Like I said, there is no mention of a port in any of the web.configs used to configure the service and its endpoints. The uri we're using for ReportServiceUri doesn't include a port. Calls to the report service don't include a port (Render, RenderAndCache, etc), just calls to the resource service (GetRenderStream).
0
Chavdar
Telerik team
answered on 01 Feb 2013, 12:28 PM
Hi,

The base address for the resources is taken from the HttpRequest.Url property which corresponds to the Uri seen in the browser's address bar, not the one you have specified for the ReportServiceUri. Apparently the initially requested url contains a port number and that's why it is included in the resource requests as well. You have two options. Either check why the urls with the port name are not correctly handled from the servers or you can inherit the ReportServiceBase class and make a custom implementation for the BaseAddress property.

Kind regards,
Chavdar
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Chris Gillies
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or