Unfortunately, support for NetTcpBinding
is very limited in Mono and it does not support any kind of security.
If you only look at the source of of NetTcpBinding.cs, it may appear that it does, but if you look at the actual binding elements, you'll see a lot of methods that are not implemented.
I actually ran into the same problem a couple of days ago while I was working on my new WCF configuration system, wanted to get NetTcpBinding
working with security and when I investigated why it was not working, I realised that too much is not implemented, so it's probably a larger task to get it working.
Also note that by default, NetTcpBinding
uses WindowsStreamSecurityBindingElement
- unfortunately, I could not find any documentation on the underlying transport mechanism.
Use BasicHttpBinding
or the new BasicHttpsBinding
if you're using .NET 4.5 (it will also be available in MonoTouch shortly).