找不到引用合同的默认端点元素'

时间:2014-06-18 12:31:49

标签: c# wcf

我已经创建了WCF webservice,而我将其与其他一些Web服务一起引用,它显示错误,例如“找不到引用合同的默认端点元素”。

我的webconfig是

<service name="EenaduMobileFeedTamil.EenaduTamilComments" behaviorConfiguration="ServiceBehaviour">

   <endpoint address=""  binding="webHttpBinding" contract="EenaduMobileFeedTamil.IEenaduTamilComments" behaviorConfiguration="web">

  </endpoint>
  </service>


 <behaviors>
 <endpointBehaviors>
 <behavior name="web">
 <webHttp />
 </behavior>
 </endpointBehaviors>
  <serviceBehaviors>
   <behavior name="ServiceBehaviour">
  <serviceMetadata httpGetEnabled="true" />
  <serviceDebug includeExceptionDetailInFaults="false" />
  </behavior>
  <behavior name="">
  <serviceMetadata httpGetEnabled="true" />
   <serviceDebug includeExceptionDetailInFaults="false" />
   </behavior>
   </serviceBehaviors>
    </behaviors>

0 个答案:

没有答案