// wcf-wpf client-host project run properly but when i imported this project //into my own small project then client stopped working and give exception.
" Could not find default endpoint element that references contract 'SVC.IChat' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element. "
/// this how my app.config file is:
<configuration>
<system.servicemodel>
<bindings>
<nettcpbinding>
<binding name="NetTcpBinding_IChat" closetimeout="00:01:00" opentimeout="00:01:00">
receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="67108864" maxBufferSize="67108864" maxConnections="100"
maxReceivedMessageSize="67108864">
<readerquotas maxdepth="32" maxstringcontentlength="67108864" maxarraylength="67108864">
maxBytesPerRead="67108864" maxNameTableCharCount="16384" />
<reliablesession ordered="true" inactivitytimeout="20:00:10">
enabled="true" />
<security mode="None">
<transport clientcredentialtype="Windows" protectionlevel="EncryptAndSign" />
<message clientcredentialtype="Windows" />
</security>
</reliablesession></readerquotas></binding>
</nettcpbinding>
</bindings>
<client>
<endpoint address="net.tcp://localhost:7997/WPFHost/tcp" binding="netTcpBinding">
bindingConfiguration="NetTcpBinding_IChat" contract="SVC.IChat"
name="NetTcpBinding_IChat" />
</endpoint></client>
</system.servicemodel>
</configuration>