本机调试正常,部署到服务器后,由于我的主机有两个主机头,所以加了如下配置:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
<baseAddressPrefixFilters>
<add prefix="http://192.168.6.25/"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
后出现找不到具有绑定 WebHttpBinding 的终结点的与方案 http 匹配的基址。注册的基址方案是 []。
网上搜了很多,好像没有解决方案,特来此求助