The protocol 'https' is not supported





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm working with a WCF Service hosted in IIS however when i try navigate to the endpoint i receive the error "The protocol 'https' is not supported". It's hosted in IIS 10 locally running Windows 10.



The service is using wsHttpBinding with TransportWithMessageCredential.



Is this error something to do with the SSL certificate or IIS?



I already have a valid localhost certificate in my Local Machine > Personal certificate store.



What I've tried so far




  1. Set the httpsGetUrl attribute to the .svc endpoint.

  2. Checked IIS setting and default protocols is set to "http" which means
    both http and https protocols are enabled.

  3. Checked that the Application Pool is using .NET Framework 4.0

  4. Restarted the application pool


I appreciate if someone can assist me.



Here is the current config:



    <?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>

<system.serviceModel>
<services>
<service name="XXX.Zoo.WebServices.ZooServices_3_0"
behaviorConfiguration="ZooServices_3_0_Behavior">
<endpoint
address="https://localhost/Zootest_3_0/ZooServices_3_0.svc"
binding="wsHttpBinding"
bindingConfiguration="ZooServices_3_0_Binding"
contract="XXX.Zoo.WebServices.IZooServices_3_0" />
<endpoint

address="https://localhost/Zootest_3_0/ZooServices_3_0.svc/mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="ZooServices_3_0_Binding"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Certificate"
negotiateServiceCredential="true" algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="ZooServices_3_0_Behavior">
<serviceMetadata httpsGetEnabled="true"
httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc" />
<serviceDebug includeExceptionDetailInFaults="False" />
<!--The serviceCredentials behavior defines a service
certificate which is used by the service to authenticate
itself to its clients and to provide message protection. -->
<serviceCredentials>
<serviceCertificate
findValue="localhost"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<clientCertificate>
<authentication
certificateValidationMode="ChainTrust"/>
</clientCertificate>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>









share|improve this question

























  • For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

    – Abraham Qian
    Jan 8 at 9:48


















1















I'm working with a WCF Service hosted in IIS however when i try navigate to the endpoint i receive the error "The protocol 'https' is not supported". It's hosted in IIS 10 locally running Windows 10.



The service is using wsHttpBinding with TransportWithMessageCredential.



Is this error something to do with the SSL certificate or IIS?



I already have a valid localhost certificate in my Local Machine > Personal certificate store.



What I've tried so far




  1. Set the httpsGetUrl attribute to the .svc endpoint.

  2. Checked IIS setting and default protocols is set to "http" which means
    both http and https protocols are enabled.

  3. Checked that the Application Pool is using .NET Framework 4.0

  4. Restarted the application pool


I appreciate if someone can assist me.



Here is the current config:



    <?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>

<system.serviceModel>
<services>
<service name="XXX.Zoo.WebServices.ZooServices_3_0"
behaviorConfiguration="ZooServices_3_0_Behavior">
<endpoint
address="https://localhost/Zootest_3_0/ZooServices_3_0.svc"
binding="wsHttpBinding"
bindingConfiguration="ZooServices_3_0_Binding"
contract="XXX.Zoo.WebServices.IZooServices_3_0" />
<endpoint

address="https://localhost/Zootest_3_0/ZooServices_3_0.svc/mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="ZooServices_3_0_Binding"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Certificate"
negotiateServiceCredential="true" algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="ZooServices_3_0_Behavior">
<serviceMetadata httpsGetEnabled="true"
httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc" />
<serviceDebug includeExceptionDetailInFaults="False" />
<!--The serviceCredentials behavior defines a service
certificate which is used by the service to authenticate
itself to its clients and to provide message protection. -->
<serviceCredentials>
<serviceCertificate
findValue="localhost"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<clientCertificate>
<authentication
certificateValidationMode="ChainTrust"/>
</clientCertificate>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>









share|improve this question

























  • For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

    – Abraham Qian
    Jan 8 at 9:48














1












1








1








I'm working with a WCF Service hosted in IIS however when i try navigate to the endpoint i receive the error "The protocol 'https' is not supported". It's hosted in IIS 10 locally running Windows 10.



The service is using wsHttpBinding with TransportWithMessageCredential.



Is this error something to do with the SSL certificate or IIS?



I already have a valid localhost certificate in my Local Machine > Personal certificate store.



What I've tried so far




  1. Set the httpsGetUrl attribute to the .svc endpoint.

  2. Checked IIS setting and default protocols is set to "http" which means
    both http and https protocols are enabled.

  3. Checked that the Application Pool is using .NET Framework 4.0

  4. Restarted the application pool


I appreciate if someone can assist me.



Here is the current config:



    <?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>

<system.serviceModel>
<services>
<service name="XXX.Zoo.WebServices.ZooServices_3_0"
behaviorConfiguration="ZooServices_3_0_Behavior">
<endpoint
address="https://localhost/Zootest_3_0/ZooServices_3_0.svc"
binding="wsHttpBinding"
bindingConfiguration="ZooServices_3_0_Binding"
contract="XXX.Zoo.WebServices.IZooServices_3_0" />
<endpoint

address="https://localhost/Zootest_3_0/ZooServices_3_0.svc/mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="ZooServices_3_0_Binding"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Certificate"
negotiateServiceCredential="true" algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="ZooServices_3_0_Behavior">
<serviceMetadata httpsGetEnabled="true"
httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc" />
<serviceDebug includeExceptionDetailInFaults="False" />
<!--The serviceCredentials behavior defines a service
certificate which is used by the service to authenticate
itself to its clients and to provide message protection. -->
<serviceCredentials>
<serviceCertificate
findValue="localhost"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<clientCertificate>
<authentication
certificateValidationMode="ChainTrust"/>
</clientCertificate>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>









share|improve this question
















I'm working with a WCF Service hosted in IIS however when i try navigate to the endpoint i receive the error "The protocol 'https' is not supported". It's hosted in IIS 10 locally running Windows 10.



The service is using wsHttpBinding with TransportWithMessageCredential.



Is this error something to do with the SSL certificate or IIS?



I already have a valid localhost certificate in my Local Machine > Personal certificate store.



What I've tried so far




  1. Set the httpsGetUrl attribute to the .svc endpoint.

  2. Checked IIS setting and default protocols is set to "http" which means
    both http and https protocols are enabled.

  3. Checked that the Application Pool is using .NET Framework 4.0

  4. Restarted the application pool


I appreciate if someone can assist me.



Here is the current config:



    <?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>

<system.serviceModel>
<services>
<service name="XXX.Zoo.WebServices.ZooServices_3_0"
behaviorConfiguration="ZooServices_3_0_Behavior">
<endpoint
address="https://localhost/Zootest_3_0/ZooServices_3_0.svc"
binding="wsHttpBinding"
bindingConfiguration="ZooServices_3_0_Binding"
contract="XXX.Zoo.WebServices.IZooServices_3_0" />
<endpoint

address="https://localhost/Zootest_3_0/ZooServices_3_0.svc/mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="ZooServices_3_0_Binding"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647" >
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Certificate"
negotiateServiceCredential="true" algorithmSuite="Default"
establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="ZooServices_3_0_Behavior">
<serviceMetadata httpsGetEnabled="true"
httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc" />
<serviceDebug includeExceptionDetailInFaults="False" />
<!--The serviceCredentials behavior defines a service
certificate which is used by the service to authenticate
itself to its clients and to provide message protection. -->
<serviceCredentials>
<serviceCertificate
findValue="localhost"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<clientCertificate>
<authentication
certificateValidationMode="ChainTrust"/>
</clientCertificate>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>






wcf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 13:28







KP1

















asked Jan 4 at 13:19









KP1KP1

4391615




4391615













  • For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

    – Abraham Qian
    Jan 8 at 9:48



















  • For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

    – Abraham Qian
    Jan 8 at 9:48

















For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

– Abraham Qian
Jan 8 at 9:48





For enabling the https protocol, you should enable the https protocol in the IIS site binding module and add https service endpoint which uses transport layer security mode to the service.

– Abraham Qian
Jan 8 at 9:48












2 Answers
2






active

oldest

votes


















0














This particular error was resolved by removing the httpsGetUrl attribute from the configuration:



httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc


So the end result looks like this:



<serviceMetadata httpsGetEnabled="true"/>





share|improve this answer































    0














    If you want to enable the https protocol support, you should add the https endpoint which use transport transfer mode to the service. Then we should set up the https protocol site binding in the IIS site binding module.
    enter image description here

    I have made a demo, wish it is useful to you.
    Server end.



       [ServiceContract]
    public interface IService1
    {
    [OperationContract]
    string GetData(int value);
    }
    public class Service1 : IService1
    {

    public string GetData(int value)
    {
    return string.Format("You entered: {0}", value);
    }
    }


    Web.config



    <system.serviceModel>
    <services>
    <service name="WcfService1.Service1" behaviorConfiguration="mybehavior">
    <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="https"></endpoint>
    <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="http"></endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
    </service>
    </services>
    <bindings>
    <basicHttpBinding>
    <binding name="https">
    <security mode="TransportWithMessageCredential">
    <transport clientCredentialType="None"></transport>
    </security>
    </binding>
    <binding name="http">
    <security mode="None">
    </security>
    </binding>
    </basicHttpBinding>
    </bindings>
    <behaviors>
    <serviceBehaviors>
    <behavior name="mybehavior">
    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
    <serviceDebug includeExceptionDetailInFaults="true"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
    <protocolMapping>
    <add binding="basicHttpsBinding" scheme="https" />
    </protocolMapping>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    </system.serviceModel>


    IIS.
    enter image description here

    Here are some links, wish it is useful to you.
    WCF Service not hitting from postman over https
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/d42fc165-052d-476a-9580-1240b3d0293d/specify-endpoint-in-wcf-webconfig?forum=wcf

    Feel free to let me know if there is anything I can help with.






    share|improve this answer
























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54039721%2fthe-protocol-https-is-not-supported%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      This particular error was resolved by removing the httpsGetUrl attribute from the configuration:



      httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc


      So the end result looks like this:



      <serviceMetadata httpsGetEnabled="true"/>





      share|improve this answer




























        0














        This particular error was resolved by removing the httpsGetUrl attribute from the configuration:



        httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc


        So the end result looks like this:



        <serviceMetadata httpsGetEnabled="true"/>





        share|improve this answer


























          0












          0








          0







          This particular error was resolved by removing the httpsGetUrl attribute from the configuration:



          httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc


          So the end result looks like this:



          <serviceMetadata httpsGetEnabled="true"/>





          share|improve this answer













          This particular error was resolved by removing the httpsGetUrl attribute from the configuration:



          httpsGetUrl="https://localhost/Zootest_3_0/ZooServices_3_0.svc


          So the end result looks like this:



          <serviceMetadata httpsGetEnabled="true"/>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 7 at 10:49









          KP1KP1

          4391615




          4391615

























              0














              If you want to enable the https protocol support, you should add the https endpoint which use transport transfer mode to the service. Then we should set up the https protocol site binding in the IIS site binding module.
              enter image description here

              I have made a demo, wish it is useful to you.
              Server end.



                 [ServiceContract]
              public interface IService1
              {
              [OperationContract]
              string GetData(int value);
              }
              public class Service1 : IService1
              {

              public string GetData(int value)
              {
              return string.Format("You entered: {0}", value);
              }
              }


              Web.config



              <system.serviceModel>
              <services>
              <service name="WcfService1.Service1" behaviorConfiguration="mybehavior">
              <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="https"></endpoint>
              <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="http"></endpoint>
              <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
              </service>
              </services>
              <bindings>
              <basicHttpBinding>
              <binding name="https">
              <security mode="TransportWithMessageCredential">
              <transport clientCredentialType="None"></transport>
              </security>
              </binding>
              <binding name="http">
              <security mode="None">
              </security>
              </binding>
              </basicHttpBinding>
              </bindings>
              <behaviors>
              <serviceBehaviors>
              <behavior name="mybehavior">
              <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="true"/>
              </behavior>
              </serviceBehaviors>
              </behaviors>
              <protocolMapping>
              <add binding="basicHttpsBinding" scheme="https" />
              </protocolMapping>
              <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
              </system.serviceModel>


              IIS.
              enter image description here

              Here are some links, wish it is useful to you.
              WCF Service not hitting from postman over https
              https://social.msdn.microsoft.com/Forums/vstudio/en-US/d42fc165-052d-476a-9580-1240b3d0293d/specify-endpoint-in-wcf-webconfig?forum=wcf

              Feel free to let me know if there is anything I can help with.






              share|improve this answer




























                0














                If you want to enable the https protocol support, you should add the https endpoint which use transport transfer mode to the service. Then we should set up the https protocol site binding in the IIS site binding module.
                enter image description here

                I have made a demo, wish it is useful to you.
                Server end.



                   [ServiceContract]
                public interface IService1
                {
                [OperationContract]
                string GetData(int value);
                }
                public class Service1 : IService1
                {

                public string GetData(int value)
                {
                return string.Format("You entered: {0}", value);
                }
                }


                Web.config



                <system.serviceModel>
                <services>
                <service name="WcfService1.Service1" behaviorConfiguration="mybehavior">
                <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="https"></endpoint>
                <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="http"></endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
                </service>
                </services>
                <bindings>
                <basicHttpBinding>
                <binding name="https">
                <security mode="TransportWithMessageCredential">
                <transport clientCredentialType="None"></transport>
                </security>
                </binding>
                <binding name="http">
                <security mode="None">
                </security>
                </binding>
                </basicHttpBinding>
                </bindings>
                <behaviors>
                <serviceBehaviors>
                <behavior name="mybehavior">
                <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="true"/>
                </behavior>
                </serviceBehaviors>
                </behaviors>
                <protocolMapping>
                <add binding="basicHttpsBinding" scheme="https" />
                </protocolMapping>
                <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
                </system.serviceModel>


                IIS.
                enter image description here

                Here are some links, wish it is useful to you.
                WCF Service not hitting from postman over https
                https://social.msdn.microsoft.com/Forums/vstudio/en-US/d42fc165-052d-476a-9580-1240b3d0293d/specify-endpoint-in-wcf-webconfig?forum=wcf

                Feel free to let me know if there is anything I can help with.






                share|improve this answer


























                  0












                  0








                  0







                  If you want to enable the https protocol support, you should add the https endpoint which use transport transfer mode to the service. Then we should set up the https protocol site binding in the IIS site binding module.
                  enter image description here

                  I have made a demo, wish it is useful to you.
                  Server end.



                     [ServiceContract]
                  public interface IService1
                  {
                  [OperationContract]
                  string GetData(int value);
                  }
                  public class Service1 : IService1
                  {

                  public string GetData(int value)
                  {
                  return string.Format("You entered: {0}", value);
                  }
                  }


                  Web.config



                  <system.serviceModel>
                  <services>
                  <service name="WcfService1.Service1" behaviorConfiguration="mybehavior">
                  <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="https"></endpoint>
                  <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="http"></endpoint>
                  <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
                  </service>
                  </services>
                  <bindings>
                  <basicHttpBinding>
                  <binding name="https">
                  <security mode="TransportWithMessageCredential">
                  <transport clientCredentialType="None"></transport>
                  </security>
                  </binding>
                  <binding name="http">
                  <security mode="None">
                  </security>
                  </binding>
                  </basicHttpBinding>
                  </bindings>
                  <behaviors>
                  <serviceBehaviors>
                  <behavior name="mybehavior">
                  <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
                  <serviceDebug includeExceptionDetailInFaults="true"/>
                  </behavior>
                  </serviceBehaviors>
                  </behaviors>
                  <protocolMapping>
                  <add binding="basicHttpsBinding" scheme="https" />
                  </protocolMapping>
                  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
                  </system.serviceModel>


                  IIS.
                  enter image description here

                  Here are some links, wish it is useful to you.
                  WCF Service not hitting from postman over https
                  https://social.msdn.microsoft.com/Forums/vstudio/en-US/d42fc165-052d-476a-9580-1240b3d0293d/specify-endpoint-in-wcf-webconfig?forum=wcf

                  Feel free to let me know if there is anything I can help with.






                  share|improve this answer













                  If you want to enable the https protocol support, you should add the https endpoint which use transport transfer mode to the service. Then we should set up the https protocol site binding in the IIS site binding module.
                  enter image description here

                  I have made a demo, wish it is useful to you.
                  Server end.



                     [ServiceContract]
                  public interface IService1
                  {
                  [OperationContract]
                  string GetData(int value);
                  }
                  public class Service1 : IService1
                  {

                  public string GetData(int value)
                  {
                  return string.Format("You entered: {0}", value);
                  }
                  }


                  Web.config



                  <system.serviceModel>
                  <services>
                  <service name="WcfService1.Service1" behaviorConfiguration="mybehavior">
                  <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="https"></endpoint>
                  <endpoint address="" binding="basicHttpBinding" contract="WcfService1.IService1" bindingConfiguration="http"></endpoint>
                  <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
                  </service>
                  </services>
                  <bindings>
                  <basicHttpBinding>
                  <binding name="https">
                  <security mode="TransportWithMessageCredential">
                  <transport clientCredentialType="None"></transport>
                  </security>
                  </binding>
                  <binding name="http">
                  <security mode="None">
                  </security>
                  </binding>
                  </basicHttpBinding>
                  </bindings>
                  <behaviors>
                  <serviceBehaviors>
                  <behavior name="mybehavior">
                  <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
                  <serviceDebug includeExceptionDetailInFaults="true"/>
                  </behavior>
                  </serviceBehaviors>
                  </behaviors>
                  <protocolMapping>
                  <add binding="basicHttpsBinding" scheme="https" />
                  </protocolMapping>
                  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
                  </system.serviceModel>


                  IIS.
                  enter image description here

                  Here are some links, wish it is useful to you.
                  WCF Service not hitting from postman over https
                  https://social.msdn.microsoft.com/Forums/vstudio/en-US/d42fc165-052d-476a-9580-1240b3d0293d/specify-endpoint-in-wcf-webconfig?forum=wcf

                  Feel free to let me know if there is anything I can help with.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 8 at 10:11









                  Abraham QianAbraham Qian

                  1,094119




                  1,094119






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54039721%2fthe-protocol-https-is-not-supported%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Mossoró

                      Error while reading .h5 file using the rhdf5 package in R

                      Pushsharp Apns notification error: 'InvalidToken'