找不到具有绑定 WSHttpBinding 的终结点的与方案 http 匹配的基址。注册的基址方案是 []。

<configuration>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="com.xxx.PI.Config.Services.ConfigServiceBehavior">
          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://cs.xxx.com/ConfigService/metadata" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="com.xxx.PI.Config.Services.ConfigServiceBehavior" name="ConfigService">
        <endpoint address="http://cs.xxx.com/ConfigService/" binding="WSHttpBinding" contract="com.xxx.PI.Config.IServices.IConfigService" />
      </service>
    </services>
  </system.serviceModel>

</configuration>

 

明明都一样的

 

和服务契约中定义的都一样啊,为什么会报此错误啊

posted @ 2010-09-30 17:28  PointNet  阅读(3054)  评论(0编辑  收藏  举报