how to - no security with NetPeerTcpBinding?

  • Thread starter Thread starter Valery
  • Start date Start date
V

Valery

Sorry if this is the wrong group - I am using WCF in C#.

I would like to set a non-secure (SecurityMode.None) binding for:

NetPeerTcpBinding binding = new NetPeerTcpBinding();

but binding.Security.Mode is read-only and set to
SecurityMode.Transport by default.

It is possble to set it for NetTcpBinding.

How can I swtch-off Authentication at least?

Tahnks,
Valery
 
Valery,

The following works fine for me:

NetPeerTcpBinding binding = new NetPeerTcpBinding();
binding.Security.Mode = SecurityMode.None;

Mode is not read only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top