Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Reporting Service under SSL
posted

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.

configs.rar
  • 3070
    posted

    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">

              <binaryMessageEncoding />

              <httpsTransport />

            </binding>

          </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