Click here to Skip to main content
14,385,331 members
Rate this:
Please Sign up or sign in to vote.
See more:
If I configured the site in IIS7 with ssl means I got the below error:

Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https].

In dev environment it is working fine as same it is not working in prod environment:

Please find my config file below.
<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyServiceTypeBehaviors" >
          <serviceMetadata  httpsGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpLargeMessage" maxReceivedMessageSize="5242880" maxBufferSize="5242880">
          <readerQuotas maxArrayLength="5242880"/>
          <security mode="Transport"/>
        </binding>
      </basicHttpBinding>
     <!--<customBinding>
    <binding name="VMSDev.Service1.customBinding0">
     <binaryMessageEncoding />
     <httpTransport />
    </binding>
   </customBinding>-->
    </bindings>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    <services>
      <service name="VMSDev.Service1" behaviorConfiguration="MyServiceTypeBehaviors">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpLargeMessage" contract="VMSDev.Service1" />
        <!--<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />-->
        <host>
          <baseAddresses>
            <add baseAddress="https://10.237.204.246/"/>
          </baseAddresses>
        </host>
      </service>
    </services>

Please help me on this if you have any suggestion.
Thanks.
Posted
Updated 5-Feb-19 2:16am
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

See similar issues discussed here and resolved:
Link 1[^]
Link 2[^]
Link 3[^]

Last link looks exactly same as yours.
   
Comments
Espen Harlinn 25-Feb-11 5:26am
   
Right, good reply - my 5
Sandeep Mewara 26-Feb-11 1:57am
   
Thanks Espen.
Rate this:
Please Sign up or sign in to vote.

Solution 2

Open IIS And right click on Default App Pool and Add Binding to make application work with HTTPS protocol.
------------------------
type : https
IP address : All unassigned
potr : 443
SSL Certificate : WMSVC
-------------------------
Click on and restart IIS
Done
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100