Questions tagged [nettcpbinding]

The net.tcp binding is a Microsoft Windows Communications Foundation (WCF) protocol. The protocol is binary, secure, and reliable --- though these options are configurable.

nettcpbinding
Filter by
Sorted by
Tagged with
184 votes
1 answer
6k views

Catch-22 prevents streamed TCP WCF service securable by WIF; ruining my Christmas, mental health

I have a requirement to secure a streamed WCF net.tcp service endpoint using WIF. It should authenticate incoming calls against our token server. The service is streamed because it is designed to ...
user avatar
34 votes
2 answers
28k views

what is the global.asax Application_Start equivalent when using WAS in IIS7

I'd like to use the netTcpBinding for my WCF application which is currently hosted in IIS7, which means configuring it to use WAS instead. This is fairly straight forward however, my application ...
Mike Tours's user avatar
32 votes
2 answers
33k views

What is the purpose of WCF reliable session?

The documentation around this topic is poor. I use WCF services with NetTcpBinding hosted in Windows service. The problem is that a session is dropped when it is inactive for some time. What I need is ...
Andrei Sedoi's user avatar
  • 1,534
31 votes
2 answers
31k views

Detecting Client Death in WCF Duplex Contracts

I'm trying to build a SOA where clients can perform long running queries on the server and the server responds using a callback. I'd like to be able to detect if the client disconnects (through user ...
Sindhudweep's user avatar
29 votes
1 answer
20k views

WCF NetTcpBinding Security - how does it work?

I am encountering the following problems trying to work through the quagmire of settings in WCF... I created a WCF client-server service using a NetTcp binding. I didn't make any changes to the ...
Remotec's user avatar
  • 10.6k
24 votes
5 answers
27k views

WCF How much faster is TCP than HTTP

I understand that TCP is faster than HTTP for WCF but I'm interested to know by how much. I have a performance issue with a large application that uses HTTP and am considering whether moving to netTcp ...
Mark 909's user avatar
  • 1,835
19 votes
1 answer
15k views

Streamed transfer + netTcpBinding = framing mode not supported?

Can anybody explain what this error means: The .Net Framing mode being used is not supported by blah blah yadda I can't find any info worthwhile. The exception says to check the server logs, ...
user avatar
17 votes
5 answers
26k views

netTcpBinding or wsHttpBinding

I have a WCF Service hosted as Windows Service and client is an ASP.Net application consuming WCF Service methods. In process of implementing security, I am confused over which among netTcpBinding/...
inutan's user avatar
  • 10.6k
14 votes
3 answers
19k views

Add service reference when using netTcp binding

I have a WCF service that I tested by copying its interfaces to a sample client project. Now I want to work properly by adding a service reference. The service is hosted in windows hosting (using ...
Noich's user avatar
  • 15k
13 votes
1 answer
32k views

Register asp.net in IIS 10

I have one issue which is related with registering asp.net in IIS 10. My environment is Windows 10, IIS 10, VS 2013 and VS 2015 installed, .NET 3.5 is a feature in Windows Features. I want to use ...
Edward's user avatar
  • 29.1k
13 votes
1 answer
9k views

Can you do NetTcpBinding in code? Should you?

WCF newbie here... I'm trying to self-host a WCF service using NetTcpBinding. Based on the MSDN "how-to" tutorial I have done all the binding in code, which I then changed from WsHttpBinding to ...
Shaul Behr's user avatar
  • 37.5k
12 votes
3 answers
6k views

How to properly close a client proxy (An existing connection was forcibly closed by the remote host)?

Please don't close as duplicate until you read the question to the end; I already googled for hours without success. EDIT: Now I'm convinced it's related to the way WCF caches opened TCP connections (...
11 votes
4 answers
10k views

Can't get netTcpBinding requests to show up in Fiddler

I have a WCF service that has two endpoints. One with basicHttpBinding and one with netTcpBinding. Here is my config... <services> <service name="SomeService.Service"> <...
kavun's user avatar
  • 3,368
10 votes
2 answers
8k views

netTcpBinding without Windows credentials?

I've got a machine-control application where I have a single client computer and five server boxes communicating on the machine subnet. There is no domain controller. I would like to use ...
Scott P's user avatar
  • 3,763
9 votes
2 answers
8k views

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 ...
Shaul Behr's user avatar
  • 37.5k
9 votes
5 answers
5k views

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 ...
Ian Ringrose's user avatar
  • 51.5k
9 votes
1 answer
9k views

Enabling certificate based authentication for WCF service using netTcpBinding

I have a WCF service which is exposed using a single endpoint with netTcpBinding which sits on Server A, hosted on IIS7.5/WAS on our internal LAN on our domain. This service is then consumed by an ...
Ira Rainey's user avatar
  • 5,209
8 votes
2 answers
13k views

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 ...
Mark Kadlec's user avatar
  • 8,186
8 votes
3 answers
20k views

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 ...
Martin's user avatar
  • 1,551
8 votes
2 answers
25k views

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 { ...
Nullius's user avatar
  • 2,655
8 votes
1 answer
14k views

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....
Upendra Chaudhari's user avatar
8 votes
1 answer
594 views

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 ...
Lewray's user avatar
  • 1,164
8 votes
1 answer
3k views

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....
Xharlie's user avatar
  • 2,450
7 votes
1 answer
8k views

NetTcpBinding with Streaming and Session

I’m trying to set up a WcfService with the use of NetTcpBinding. I use Transfer mode Streamed since I will transfer large files. I need to use Session, and I have read that NetTcpBinding supports this,...
CaptainMorgan's user avatar
7 votes
2 answers
6k views

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 ...
ablei2000's user avatar
  • 409
7 votes
3 answers
4k views

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 ...
Joel Martinez's user avatar
7 votes
2 answers
7k views

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 ...
Gonzalo Méndez's user avatar
7 votes
1 answer
2k views

.net distributed grid computing migration, recommendations on libraries, architecture [closed]

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, ...
m3ntat's user avatar
  • 3,663
7 votes
2 answers
549 views

Getting IEnumerable<T> semantics with a NetTcpBinding WCF service?

First, this is not a duplicate of IEnumerable<T> 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 ...
Martin Ba's user avatar
  • 38k
7 votes
0 answers
2k views

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 ...
Sjblack's user avatar
  • 695
6 votes
1 answer
9k views

How do configure username/password authentication for WCF netTcpBinding?

I would like to be able to use username/password authentication with nettcpbinding, is that possible? (UserNamePasswordValidator or something like that), no windows authentication. I'm configuring ...
jgauffin's user avatar
  • 101k
6 votes
1 answer
22k views

How to consume WCF Service with net tcp binding and without mex binding

I installed a windows application, it uses a WCF service, I just go through the config file for WCF service with net tcp binding hosted in Windows service with the following configuration, I am ...
Dev's user avatar
  • 970
6 votes
2 answers
9k views

Cancel a long running task over WCF from client

I have a WCF service set to PerCall I would like to know how I can send a Start call from the client to start a long running process, and send a Cancel command to cancel it My WCF service looks ...
Null Reference's user avatar
6 votes
1 answer
6k views

WCF Application - need "app start" code for both http and tcp bindings [duplicate]

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 ...
Matt Roberts's user avatar
  • 26.6k
6 votes
2 answers
4k views

WCF With NetTCP across machines on the same network

I'm trying to implement some cross process communication that is between multiple computers and one server on the same network. What I'm trying right now is to use WCF with NetTcpBinding, hosted ...
Adam Haile's user avatar
6 votes
2 answers
2k views

Why is it so much harder to enable SSL (Transport security) over net.tcp than HTTP?

Implementing a web service that uses Transport-level security with WCF over HTTP is pretty easy: Enable SSL for my WCF service Implementing a web service that uses Transport-level security with WCF ...
Greg Smalter's user avatar
  • 6,609
6 votes
2 answers
21k views

The maximum message size quota for incoming messages has been exceeded (obvious fix not helping)

I have an application which is uploading large files using WCF with netTcpBinding. For a particular file, i'm getting the error message: The maximum message size quota for incoming messages (65536) ...
pjacko's user avatar
  • 552
6 votes
2 answers
3k views

How to consume duplex wcf service in Windows Universal App

How can I consume wcf service with duplex contract in Windows universal app? I'm getting PlatformNotSupportedExcetpion: Operation is not supported on this platform. runtime exception when trying to ...
Liero's user avatar
  • 26.2k
6 votes
1 answer
4k views

Is it possible create a scalable WCF service with thousands of long-running TCP connections?

I'm attempting to create a WCF service where several thousand (~10,000) clients can connect via a duplex NetTcpBinding for extended periods of time (weeks, maybe months). After a bit of reading, it ...
cjones26's user avatar
  • 3,539
6 votes
2 answers
3k views

Mono WCF NetTcp service takes only one client at a time

While trying to build a client-server WCF application in Mono we ran into some issues. Reducing it to just a bare example we found that the service only accepts one client at a time. If another client ...
vene's user avatar
  • 235
6 votes
1 answer
3k views

What's the fastest possible security configuration for netTcpBinding?

I'm running a WCF service that, among other things, is used as the back end for a web site. Because both the web site and the WCF service are running on the same machine, and in the interests of ...
Gavin's user avatar
  • 9,964
6 votes
1 answer
10k views

Getting WCF callbacks to work with the netTcpBinding

I am having some issues getting callbacks working with my netTcpBinding WCF client/server. Here is the code... any thoughts? Service Side contract: using System.Runtime.Serialization; using System....
AndySousa's user avatar
  • 1,112
6 votes
1 answer
431 views

C# WCF NetTCPBinding Blocking Application

I have a basic buddylist type application which is a pub/sub deal in WCF. My problem is one or two of the calls are long running and this blocks up the entire server application (gui updates etc). ...
Luke Belbina's user avatar
  • 5,799
6 votes
1 answer
7k views

WCF - Disabling security in nettcpbinding (c#)

I'm trying to make a self hosted WCF app that uses nettcpbinding but works in an environment without a domain. It's just two regular windows pc's, one is the server and the other one will be the ...
user302259's user avatar
6 votes
0 answers
3k views

Consuming WCF service from .net core 2.1 web app

I have a .net framework app that consumes a WCF service successfully, and when i try to duplicate the settings onto my .net standard 2.0 class library - which is used by a .net core 2.1 web ...
Tomer Something's user avatar
5 votes
3 answers
11k views

WCF, Duplex callback, recieveTimeout netTcpBinding

Ive got a Host / Client WCF Service and client that is using netTcpBinding and a callback method. <bindings> <netTcpBinding> <binding name="tcp_Unsecured" receiveTimeout="...
PrimeTSS's user avatar
  • 2,693
5 votes
3 answers
8k views

Does WCF message security actually encrypt message contents?

I have read the documentation provided at MSDN, and some other posts on this site. However, its still a bit unclear whether WCF (specifically, NetTcpBinding) will actually encrypt message contents ...
Sean Thoman's user avatar
  • 7,459
5 votes
3 answers
3k views

Is there any difference in hosting net.tcp wcf services under Windows 7 and Windows 2008 Server in IIS?

I have a situation where I can't host a service using net.tcp under windows 7 but it works fine on windows 2008 server. I have enabled WAS, and made the same settings in both windows 7 and windows ...
Tomas Jansson's user avatar
5 votes
1 answer
4k views

WCF Service call working with basicHttpBinding but fails with netTcpBinding

(Please read comment as i have a fix) Hi, I have created a WCF Service that i am hosting in IIS 7.5 on Windows 7 using .net 4.0 The service is hosted both on http and net.tcp. net.tcp://localhost:42/...
WebDude's user avatar
  • 6,165
5 votes
2 answers
5k views

Windows Authentication / Encryption in WCF With NetTcpBinding

I'm trying to understand how windows authentication / encryption works with the NetTcpBinding in WCF. I need to know exactly what encryption algorithm is used to encrypt the data going across the wire ...
Tallek's user avatar
  • 1,575

1
2 3 4 5
10