Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a wcf rest service and i have this error "The protocol 'https' is not supported"
I am tried so hard to find solution to this Issue and need urgently need your help ..

my web.config file looks like :

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="MyMcvRestService.Service1" behaviorConfiguration="svcBehavior">
        <endpoint address="https://localhost:8732/service1" binding="webHttpBinding" contract="MyMcvRestService.IService1" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="svcBehavior">          
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        
      </serviceBehaviors>

      <endpointBehaviors>
        <behavior>
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>

    <bindings>
      <webHttpBinding>
        <binding>         
          <security mode="Transport">
            <transport clientCredentialType="None"/>
            
          </security>          
        </binding>
      </webHttpBinding>
    </bindings>

   
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
    <system.webServer>
        <directoryBrowse enabled="true" />
    </system.webServer>

</configuration>



Thanks alot :)

What I have tried:

I tried to change to http but i faild , and also tried to change the transport mode also that caused error ..
Posted
Updated 7-Mar-17 3:26am

1 solution

I googled "wcf https" and found thousands of articles that will probably help you that include all sorts of steps you have not attempted yourself. Please do basic research before asking a question. Go through the various solutions detailed below and if you are still having problems then update your question to explain what you have tried to avoid people suggesting things you've already done.

Google[^]
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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