[Mono-list] WCF NetPeerTcpBinding

technomage1972 dellis1972 at googlemail.com
Sat Jan 22 12:33:16 EST 2011


Has anyone managed to get the NetPeerTcpBinding stuff working under mono 2.8?

using code like the following 

NetPeerTcpBinding n2p2 = new NetPeerTcpBinding();
n2p2.Security.Mode = SecurityMode.None;
EndpointAddress ep = new EndpointAddress("net.p2p://mesh");
syncClient = ChannelFactory<ISend>.CreateChannel(n2p2, ep);		

syncService = new ServiceHost(typeof(Synchorniser));
NetPeerTcpBinding n2p2 = new NetPeerTcpBinding();
n2p2.Security.Mode = SecurityMode.None;
syncService.AddServiceEndpoint(typeof(ISend), n2p2, "net.p2p://mesh");
syncService.Credentials.Peer.MeshPassword = "boo";
syncService.Open();


results in a 

"An endpointaddress must be configured for this channel factory"

error.

Has anyone got a sample of this working?

Dean
-- 
View this message in context: http://mono.1490590.n4.nabble.com/WCF-NetPeerTcpBinding-tp3231619p3231619.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list