The net.tcp binding is a Microsoft Windows Communications Foundation (WCF) protocol. The protocol is binary, secure, and reliable --- though these options are configurable.
Questions tagged [nettcpbinding]
474 questions
9
votes
2 answers
WCF - is it bad practice to leave a channel open for a long time?
I'm just learning the ropes around WCF. What I was planning to do was have a duplex channel open between a client and server using NetTcpBinding, and keep that open indefinitely so that the server can initiate requests to the client.
Then I…

Shaul Behr
- 36,951
- 69
- 249
- 387
9
votes
5 answers
How can I find a TCP port that is free with NetTcpBinding (WCF) (so a server can bind to it)
Find the next TCP port in .Net says how to do this in raw .net, but not how to safely to this with WCF.
In my unit tests, I need to use the NetTcpBinding, I do not wish to hard code the port it is using.
Therefore how can I get the NetTcpBinding…

Ian Ringrose
- 51,220
- 55
- 213
- 317
8
votes
1 answer
CommunicationObjectAbortedException in WCF service channel while multiple data load
I am using WCF service in my client-server application and I am facing following error while communication between server and client.
Error Message =>> System.ServiceModel.CommunicationObjectAbortedException: The communication object,…

Upendra Chaudhari
- 6,473
- 5
- 25
- 42
8
votes
3 answers
Hosting a WCF service with Net.TCP
I am totally new to this and trying to host the simplest WCF service with a net.tcp binding
I have Windows 7 Professional and IIS7 and have enabled NON http activation.
I start a new WCF Service application
project in vs2010 and compile it.
NOHTING…

Martin
- 1,521
- 3
- 18
- 35
8
votes
1 answer
What is the simplest way to implement encryption in WCF when using the netTcpBinding?
I am implementing a WCF service which will be used (in part) within a private LAN.
I will be using netTcpBinding and would like to implement some form of security on the communications, more specifically, it is important that the data be encrypted…

Lewray
- 1,164
- 1
- 11
- 26
8
votes
1 answer
What is the Correct Way to Dispose a WCF Proxy?
I have been struggling with WCF Proxies. What is the correct way to Dispose a WCF Proxy? The answer is not trivial.
System.ServiceModel.ClientBase violates Microsoft's own Dispose-pattern
System.ServiceModel.ClientBase does implement…

Xharlie
- 2,350
- 3
- 19
- 39
8
votes
2 answers
Net TCP binding: The URI prefix is not recognized
This really is bugging me for a couple of hours. I created the simplest WCF service using a TCP binding.
namespace WcfTcpService
{
public class TestTcpService : ITestTcpService
{
public string Hello(string name)
{
…

Nullius
- 2,607
- 2
- 16
- 22
8
votes
2 answers
Can ZeroMQ be used to accept traditional socket requests?
I'm trying to re-write one of our old Servers using ZeroMQ, for now I have the following Server setup, (which works for Zmq requests):
using (var context = ZmqContext.Create())
using (var server = context.CreateSocket(SocketType.REP)) {
…

Mark Kadlec
- 8,036
- 17
- 60
- 96
7
votes
0 answers
SecurityNegotiationException: A Call to SSPI Failed
I have a WCF webservice using a NetTcpBinding with Transport security and the clientCredientialType set to none. I have no identity specified on the endpoint using this binding. Every attempt made to call a method on the service results in the…

Sjblack
- 695
- 4
- 14
7
votes
2 answers
Getting IEnumerable semantics with a NetTcpBinding WCF service?
First, this is not a duplicate of IEnumerable as return type for WCF methods, I think I understand that the WCF architecture only allows concrete types to be transferred that can be stuffed into a message.
Second, our setup however is not a…

Martin Ba
- 37,187
- 33
- 183
- 337
7
votes
3 answers
Can I add a Service Reference with netTcpBinding in WCF?
Is it possible to add a service reference in visual studio, which generates the local proxy class to call the WCF service when using the netTcpBinding?
As I understood it, the service reference method requires a WSDL to be exposed by the service,…

Joel Martinez
- 46,929
- 26
- 130
- 185
7
votes
2 answers
WCF - How to configure netTcpBinding for NTLM authentication?
I know how to configure basicHttpBinding for NTLM authentication, but can't figure out a way to do the same for netTcpBinding.
Does netTcpBinding support NTLM? If so, how to force WCF service to use NTLM?
BTW a well known method using identity…

ablei2000
- 409
- 1
- 5
- 10
7
votes
1 answer
.net distributed grid computing migration, recommendations on libraries, architecture
I have a c# multi-threaded monte carlo simulation, the application is already structured such that it can be partitioned by into Tasks that execute independently, a TaskController executes Tasks, aggregates intermediate results, checks for…

m3ntat
- 3,635
- 11
- 38
- 50
7
votes
2 answers
What exactly do I need to do to host a WCF service in IIS 7.0 using netTcpBinding?
I've been trying for more than a week without any success at all, to host a very simple HelloWorld-like wcf service using netTcpBinding.
With http, everything is ok. I can access my service even from a remote machine. But with tcp problems arise.
I…

Gonzalo Méndez
- 548
- 7
- 18
6
votes
1 answer
WCF Application - need "app start" code for both http and tcp bindings
I have a WCF application that requires some app initialization code to fire when the app starts. Currently the code sits in my Application_Start method in global.asax.cs:
protected void Application_Start(object sender, EventArgs e)
{
//…

Matt Roberts
- 26,371
- 31
- 103
- 180