在IIS7上托管WCF
以下是我的W CF web服务的配置文件:在IIS7上托管WCF,wcf,iis-7,Wcf,Iis 7,以下是我的W CF web服务的配置文件: <services> <service behavior Configuration="METADATASERVICEEXTENSION" name="namespace.MYwebServiceclass"> <endpoint address="" behaviorConfiguration="" binding="ws2007HttpBinding" binding Configuration
<services>
<service behavior Configuration="METADATASERVICEEXTENSION" name="namespace.MYwebServiceclass">
<endpoint address="" behaviorConfiguration="" binding="ws2007HttpBinding"
binding Configuration="xxx" name="xxx" contract="IMyWebService">
<identity>
<dns value="" />
<certificateReference yyyyyy="xxxxxx" find Value=""
ISCHAINincluded="false" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" binding Configuration=""
name="Metadata Exchange" contract="IMetadataExchange" />
</service>
</services>
我收到以下错误:找不到与绑定WS2007HttpBinding的端点的scheme HTTP匹配的基址。注册的基址方案是[HTTPS]。
-我已将此服务配置为HTTPS:443,对我的web配置有任何更改吗
这是我的装订部分:
<bindings>
<ws2007HttpBinding>
<binding name="xxxxx">
<security mode="None">
<transport clientCredentialType="None" />
<message clientCredentialType="None" negotiateServiceCredential="false"
establishSecurityContext="false" />
</security>
</binding>
</ws2007HttpBinding>
</bindings>
尝试在模式的安全元素中设置以下内容:
<security mode="transport">
您的绑定配置丢失。能否显示绑定的绑定部分?这是您的服务部分-我们也希望看到您的绑定部分,因为可能存在问题。如果您发布代码、XML或数据示例,请在文本编辑器中突出显示这些行,然后单击“代码示例”按钮({}
)在编辑器工具栏上很好地格式化和语法突出显示它!这样,即使是代码和XML也可以很好地显示出来!HTTPS通常意味着您必须定义传输级安全方案