TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Steven Wong
NA
3
1.5k
Is DuplexChannelFactory not supported on Windows 10??
Sep 28 2015 2:25 PM
I am new on WCF and I am writing a universal app with WCF callback but got a exception 'Operation is not supported on this platform.'
My code is
In client side:
Uri addr = new Uri("net.tcp://localhost:8733/Service1/");
EndpointAddress endpoint = new EndpointAddress(addr);
Service1CallbackService scbs = new Service1CallbackService();
InstanceContext callback = new InstanceContext(scbs);
NetTcpBinding binding = new NetTcpBinding();
NetTcpSecurity ntSecurity = new NetTcpSecurity();
ntSecurity.Mode = SecurityMode.None;
binding.Security = ntSecurity;
// throw exception in here
DuplexChannelFactory<IService1> channelFactory = new DuplexChannelFactory<IService1>(callback, binding, endpoint);
In WCF Service
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IMyContractCallBack))]
public interface IService1
{
[OperationContract(IsOneWay = true)]
void SendMessage(string ID, string message);
}
public interface IMyContractCallBack
{
[OperationContract(IsOneWay = true)]
void NotifyPCReceivedMessage(string ID, string message);
}
Reply
Answers (
3
)
Binding
debugging of wcf service