Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
5.00/5 (1 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.
XML
<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 1:16am
v2

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
 
Share this answer
 
See similar issues discussed here and resolved:
Link 1[^]
Link 2[^]
Link 3[^]

Last link looks exactly same as yours.
 
Share this answer
 
Comments
Espen Harlinn 25-Feb-11 5:26am    
Right, good reply - my 5
Sandeep Mewara 26-Feb-11 1:57am    
Thanks Espen.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900