找不到具有繫結 WSHttpBinding 的終結點的與方案 http 匹配的基址。註冊的基址方案是 []。...

weixin_34219944發表於2010-09-30
<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>

 

明明都一樣的

 

和服務契約中定義的都一樣啊,為什麼會報此錯誤啊

相關文章