We have implement SSL on our WPF application but when we try and print reports from the report server we get the following exception:
The provided URI scheme 'https' is invalid; expected 'http'
I have included our config files in case its an incorrect setting.
Would appreciate any help.
Hi,
In order to use SSL need to specify it in the WCF bindings both at the server- and client-side. Unfortunately, there is a bug in WPF/Winform viewers that even if you specify to use https in the App.Config (as specified bellow) it ends up not loading the client-side configuration. In Silverlight it is working properly. This bug will be fixed in the next SR planned for mid-October.
The steps required to enable SSL are the following:
1) Change the binding in the Web.config to use httpsTransport
<binding name="binaryHttpBinding">
<binaryMessageEncoding />
<httpsTransport />
</binding>
2) Modify the App.Config defining an endpoint named “CustomBinding_IReportProcessorService” using httpsTransport e.g.
<system.serviceModel>
<bindings>
<customBinding>
<binding name="binaryHttpsBinding">
</customBinding>
</bindings>
<client>
<endpoint
binding="customBinding"
bindingConfiguration="binaryHttpsBinding"
contract="ReportProcessorService.IReportProcessorService"
name="CustomBinding_IReportProcessorService" />
</client>
</system.serviceModel>
In Silverlight you need to add a file named “ServiceReferences.ClientConfig” as content of the XAP and include the endpoint configuration there (see here for more details).
If you can’t wait until the problem is fixed let me know and I will contact you personally.
Best,
Leo
Hello Leo
Sorry to be a pain. Could we have a pre-release version if possible? We need to start showing our customers our latest release but are unable to demonstrate the reporting.
Any help would be greatly appreciated.
Cheers
Steve