I am getting the following error while trying to add service in my application
Metadata contains a reference that cannot be resolved: 'net.tcp://[address]/myWCFService'. Could not connect to net.tcp://[address]/myWCFService. The connection attempt lasted for a time span of 00:00:21.0010000. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond [address]:808. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond [address]:808 If the service is defined in the current solution, try building the solution and adding the service reference again.
I have created a WCF service and added it to asp.net host application when i am testing it locally on my system it is working fine but when hosted on our server getting error .
Web Config :-
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="myBehavior">
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="myBinding" />
</netTcpBinding>
</bindings>
<services>
<service behaviorConfiguration="myBehavior" name="GChatService.Chat">
<endpoint address="net.tcp://[address]:808/myWCFService"
binding="netTcpBinding" bindingConfiguration="myBinding" name="nettcp"
contract="GChatService.IChat" />
<endpoint address="net.tcp://[address]:808/myWCFService/mex"
binding="mexTcpBinding" bindingConfiguration="" name="mex"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://[address]:808" />
</baseAddresses>
<timeouts closeTimeout="00:02:10" openTimeout="00:10:00" />
</host>
</service>
</services>
</system.serviceModel>
Asp host code