【发布时间】:2019-12-18 06:39:15
【问题描述】:
【问题讨论】:
标签: wcf iis windows-10
【问题讨论】:
标签: wcf iis windows-10
我建议你可以先检查你的服务器上是否安装了正确的 WCF 扩展。
您可以打开服务器管理器并选择添加角色或功能以打开向导。
如果您已经安装了 WCF 扩展,我建议您检查应用程序的 web.config 文件以确保您使用了正确的 WCF 设置。
例如:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="Microsoft.ServiceModel.Samples.CalculatorService">
<!-- This endpoint is exposed at the base address provided by host: http://localhost/servicemodelsamples/service.svc -->
<endpoint address=""
binding="wsHttpBinding"
contract="Microsoft.ServiceModel.Samples.ICalculator" />
<!-- The mex endpoint is explosed at http://localhost/servicemodelsamples/service.svc/mex -->
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
</configuration>
【讨论】: