'http:// Foo'中的端点没有与None MessageVersion的绑定

时间:2015-05-21 11:27:31

标签: c# .net web-services wcf

这个项目在我的本地电脑上完美运行,但是当我在服务器上运行时,我收到了这个错误。

  

http://Foo”的端点没有“无”的绑定   MessageVersion。 'System.ServiceModel.Description.WebHttpBehavior'是   仅适用于WebHttpBinding或类似绑定。

  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BIServicesSoap" maxBufferPoolSize="20000000" maxBufferSize="20000000"
          maxReceivedMessageSize="20000000" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://FooA"
        binding="basicHttpBinding" bindingConfiguration="BIServicesSoap"
        contract="FinansService.BIServicesSoap" name="BIServicesSoap" />
      <endpoint address="http://FooB"
        binding="basicHttpBinding" bindingConfiguration="BIServicesSoap"
        contract="FinansNet.BIServicesSoap" name="BIServicesSoap1" />
    </client>
  </system.serviceModel>

注意:在服务器上运行另一个WCF项目,我的项目在子文件夹下运行。网络配置会混合吗?

0 个答案:

没有答案
相关问题