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

ReportViewer over https

1 Answer 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 29 Mar 2012, 09:26 PM
I've read through a bunch of forum posts on this topic, and have implemented the wcf ssl help document verbatim (and with the fixes mentioned here). However, none of that is fixing my issue. I'm getting the following error:

System.ArgumentException : The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via

I can navigate to the svc page in a web browser via https ("https://localhost/My.Web/Reports2Service/ReportService.svc" 
). I can also point the Wcf Test Client to the service, and it works. It does complain about a few methods, but that appears to be unrelated - due to limitations of the test client itself. I can invoke ListAvailableReports() and ListRenderingExtensions() successfully in the test client. This seems to indicate to me that the web.config is correct. I have the code below in the constructor of my code-behind for the view. 

private const string ReportServiceURLPath = "My.Web/Reports2Service/ReportsService.svc";
this.ReportViewer1.ReportServiceUri = new Uri(string.Format(
    "https://{0}/{1}",
    Application.Current.Host.Source.Host,
    ReportServiceURLPath));

When watching the traffic in Fiddler, I don't see any traffic getting triggered when I click the run report button. The event handler for that button press currently contains only one line (below). So either this is happening client-side and has nothing to do with the web.config file or the error is happening earlier, but isn't displayed until the Report property is set?

this.ReportViewer1.Report = "Telerik.Reporting.Examples.CSharp.Dashboard";

Note: I'm using 2011 Q3 build of both the silverlight controls (2011.3.1116.1040) and reporting (5.3.11.1116) on Win7 64bit, VS2010.

What else can I do/try to troubleshoot this?

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 30 Mar 2012, 01:09 AM
So I had a typo in one of the strings above, but that wasn't the issue. The issue was the Create function in my implementation of IReportServiceClientFactory. Once I rewrote that to create its own binding and enable transport security, it resolved the issue.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or