WCF service code in window application

Posted by Mariya on Stack Overflow See other posts from Stack Overflow or by Mariya
Published on 2010-05-25T10:38:45Z Indexed on 2010/05/25 10:41 UTC
Read the original article Hit count: 157

Filed under:

Hello,

I am using C#.net application code.

I require to call service for Window Application and i am using below code to open service Host,

using (ServiceHost host = new ServiceHost( typeof(class1), new Uri[] { new Uri("net.pipe://localhost") }) ) { }

& Then we have clinet Console application to connect to serviceHost.

Problem is,

When i create service/Client application Using Conslole Application both are working fine. But if i call servide code form Window application to connect to console client it gives Error for Binding Error like("No End Point/Address found to test")

Can any one help me to run service from C# window application ?

Thanks

© Stack Overflow or respective owner

Related posts about wcf