none
WCF web service stopped working with SSL on localhost RRS feed

  • Question

  •  

    Hi All,

    I know this question has been beaten to death, but my problem is not quite as simple.

    My web service was working under SSL on localhost, but then it suddenly stopped and I have no idea why.

    I can see the WSDL information in the web browser, but when I try to call a method I get the error: The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via

    Below is my web.config extract.


    <system.serviceModel>
    
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <services>
          <service behaviorConfiguration="serviceBehavior" name="WebService.Service">
            <endpoint
              address="mex"
              binding="mexHttpsBinding"
              contract="IMetadataExchange"/>
            <endpoint name="PheSsoWebService.PheSsoService"
              address=""
              binding="basicHttpBinding"
              bindingConfiguration="secureHttpBinding"
              contract="WebService.IService" />
            <host>
              <baseAddresses>
                <add baseAddress="https://localhost/WebService" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <bindings>
          <basicHttpBinding>
            <binding name="secureHttpBinding">
              <security mode="Transport">
                <transport clientCredentialType="None" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <behaviors>
          <serviceBehaviors>
            <behavior name="serviceBehavior">
              <serviceMetadata httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>


    If anyone has any insight into this please let me know.

    Thanks in advance.

    Lee


    • Edited by Leeb65 Thursday, April 18, 2013 9:34 AM Info added
    • Moved by Chris Robinson- MSFT Tuesday, April 23, 2013 5:49 PM WCF Question
    Thursday, April 18, 2013 9:08 AM

Answers