WCF添加服务失败一则

时间:2021-12-26 14:28:20

原因是本机开发IIS没有安装HTTPS证书

将红色的字注释掉就好了!

<services>
<service behaviorConfiguration="basicServiceBehavior" name="GameLogin.RESTService">
<endpoint behaviorConfiguration="webHttpBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBindingConfig" contract="GameLogin.IRESTService" />
<!-- Uncomment this block to enable HTTPS
<endpoint behaviorConfiguration="webHttpBehavior" binding="webHttpBinding" bindingConfiguration="webHttpsBindingConfig" contract="GameLogin.IRESTService" />
-->
</service>
</services>