不支持协议“https”。在运行WCF服务时 [英] The protocol 'https' is not supported. While running WCF service

查看:109
本文介绍了不支持协议“https”。在运行WCF服务时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个wcf休息服务,我有这个错误不支持协议'https'

我很难找到这个问题的解决方案,急需你的帮助。 。



我的web.config文件如下:



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>







非常感谢:) />


我尝试了什么:



我试图改为http但是我faild,也试图改变传输模式也导致错误..




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 ..

推荐答案

我用google搜索wcf https,发现了数千条可能对你有用的文章包括你自己没有尝试的各种步骤。在提问之前请先进行基础研究。通过下面详述的各种解决方案,如果您仍然遇到问题,请更新您的问题,以解释您试图避免人们建议您已经完成的事情。



Google [ ^ ]
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[^]


这篇关于不支持协议“https”。在运行WCF服务时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆