Advertisement
Guest User

Why can't I connect to a WCF service with net.tcp but i can with http

a guest
Feb 29th, 2012
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Could not connect to net.tcp://zzz.xxx.yyy/MyService.svc.
  2. The connection attempt lasted for a time span of 00:00:01.0464395.
  3. TCP error code 10061: No connection could be made because the target machine
  4. actively refused it x.x.x.x:808.
  5.  
  6. binding.Security.Message.ClientCredentialType = MessageCredentialType.None;
  7. binding.Security.Message.ClientCredentialType = TcpClientCredentialType.Windows;,
  8.  
  9. binding.MaxReceivedMessageSize = maxMessageSize;
  10. binding.ReaderQuotas.MaxArrayLength = maxMessageSize;
  11.  
  12. You have tried to create a channel to a service that does not support .Net
  13. Framing. It is possible that you are encountering an HTTP endpoint.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement