I have an asp.net application with a SIlverlight IGReportingApp in the solution. It also contains a ReportService.
When I run the solution locally everything works great, data is desplayed in all the reports But, when I publish the solution to a WIndows 2008 R2 Server I then the error message
"Cannot establish a connection with the report server."
On my MainPage.xmal I have
="xamReportViewer1">
>
="http://localhost:58821/ReportService.svc" />
here is your solution
http://blog.synsysit.com/microsoft-snake-biting-its-own-tail/
hope it helps
It should work with relative path, the problem might be in how the root directory is resolved in your configuration, please make sure you are considering any existing virtual path, such as: /ADDM/ReportService.svc
Regards,
Miguel.
The relative path dows not work when displayed with IE in web browser, and also not in IIS
The only way I can get it to work on the web browsers is using the IP Address
Just following up, you can find more information on how to reference reports here.
If you're trying to run the Report Viewer in Silverlight, you can replace that absolute URI for a relative one:
ServiceEndpointUri="/ReportService.svc"
(I guess your Silverlight application is under the same virtual directory)
However, if you are working in WPF, you will have to do what you just mentioned, just put the IP address instead of localhost.
Please let me know if that worked.
Damián