Hello. We are running Reporting Services 2000. We have a Web Service in C# we are using to call into Reporting Services and return the report data in XML. Here is a portion of the code:
ReportingServices rs = new ReportingServices();
rs.Credentials = new System.Net.NetworkCredentials("UserNameGoesHere",
"PasswordGoesHere",
"127.0.0.1");
ParameterValue[] parameters = // filled in by caller
DataSourceCredentials[] credentials = null;
result = rs.Render(reportPath,
"XML",
null,
@"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>",
parameters,
credentials,
null,
out encoding,
out mimeTime,
out outParams,
out warnings,
out streamIDs):
This works fine if the Reports and ReportServer virtual roots are NOT configured to use SSL. (Go to IIS, right click on virtual root, click Properties, click on Directory Security, click on Edit under Secure communications - the Require secure channel (SSL) is not checked.)
But code does not work if Require SSL is checked. We get a 403 Forbidden error.
Is there a way to make this code work in both cases: both when SSL is required and not required on the Reports and ReportServer virtual roots?
Thanks.
EDIT: I tried to change rs.Url to be https:// instead of http://. I got the exception: Could not establish trust relationship for the SSL/TLS secure channel.