configuration files - WCF Default Endpoint not found -


i creating wcf service. first one. receiving error:

could not find default endpoint element references contract 'wcfclient.iwcfclient' in servicemodel client configuration section.

i have tried switching around endpoint names , such, , deleting/recreating service reference. can't seem figure out problem is.

application config:

<bindings>     <basichttpbinding>          <binding name="basichttpbinding_iwcfclient" closetimeout="00:01:00"                 opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00"                 allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard"                 maxbuffersize="65536" maxbufferpoolsize="524288" maxreceivedmessagesize="65536"                 messageencoding="text" textencoding="utf-8" transfermode="buffered"                 usedefaultwebproxy="true">                 <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384"                     maxbytesperread="4096" maxnametablecharcount="16384" />                 <security mode="none">                     <transport clientcredentialtype="none" proxycredentialtype="none"                         realm="" />                     <message clientcredentialtype="username" algorithmsuite="default" />                 </security>             </binding>     </basichttpbinding>     </bindings>     <client>         <endpoint address="http://localhost:4295/services/wcfclient.svc"             binding="basichttpbinding" bindingconfiguration="basichttpbinding_iwcfclient"             contract="wcfclient.iwcfclient" name="basichttpbinding_iwcfclient" />     </client> 

service config:

 <services>   <service behaviorconfiguration="wcfgraphicmanagementtool.services.wcfclientbehavior"     name="wcfgraphicmanagementtool.services.wcfclient">       <endpoint address="" name="basichttpbinding_iwcfclient" binding="basichttpbinding" contract="wcfgraphicmanagementtool.contracts.iwcfclient">     </endpoint>     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />   </service> </services> <behaviors>   <servicebehaviors>     <behavior name="wcfgraphicmanagementtool.services.wcfclientbehavior">         <datacontractserializer maxitemsinobjectgraph="2147483647" />         <servicethrottling maxconcurrentcalls="120" maxconcurrentsessions="120" maxconcurrentinstances="120" />         <servicemetadata httpgetenabled="true" />         <servicedebug includeexceptiondetailinfaults="true" />     </behavior>   </servicebehaviors> </behaviors>     

i figured out. needed add project's web.config also. in service's, not project.


Comments