.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Communication between 2 WPF windows using TCP Endpoint

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :WCF

I want to first of all apologize because i am totally new with using WCF.

What im trying to do is have 2 WPF windows send objects or whatever back and fourth.

What I have now is a client that has a service reference to my Service Library using TCP

 <endpoint address="net.tcp://localhost:8888/VTService/EvalService"


I also created a host, because this we tutorial told me to, and this host is simply

ServiceHost host = new ServiceHost(typeof(EvalService));


      Console.WriteLine("Eval Service is up and running with the following endpoints.\n");
      foreach (ServiceEndpoint se in host.Description.Endpoints)


With my host running in the background and my client running i can send and receive evals with no problem. Even if i open up 2 of the WPF client i get the messages on both ends. So basically communication is great on the same machine.


I was wondering how to get another machine over the internet to see these

View Complete Post

More Related Resource Links

Getting Started with Windows Communication Foundation

Windows Communication Foundation (WCF) provides a unified framework for rapidly building service-oriented applications that makes it easy to build and consume secure, reliable, and transacted Web services. It unifies the capabilities in ASMX, WSE, Remoting, COM+, and MSMQ; therefore developers need to learn only one programming model.

Contract-First Web Services: Schema-based Development with Windows Communication Foundation


Schema- first contract-first modeling of Web Services gives you the ability to model your contracts with an XML-centric mindset. This process keeps you focused on universally acceptable types and the hierarchical data structures that can be represented in XML.

Christian Weyer, Buddhike de Silva

MSDN Magazine October 2009

Peer To Peer: Harness The Power Of P2P Communication In Windows Vista And WCF


P2P applications face a number of barriers preventing their wide adoption as a productivity solution. Fortunately Windows Vista improves the situation, as you'll learn here.

Justin Smith

MSDN Magazine October 2006

Service Station: Serialization in Windows Communication Foundation


Windows Communication Foundation supports several serialization mechanisms and provides a simple, interoperable foundation for future service-oriented applications. Here Aaron Skonnard explains it all.

Aaron Skonnard

MSDN Magazine August 2006

Security Briefs: Security in Windows Communication Foundation


Windows Communication Foundation provides three major protections- confidentiality, integrity, and authentication. This month Keith Brown explains what they can do for you.

Keith Brown

MSDN Magazine August 2006

Distributed .NET: Learn The ABCs Of Programming Windows Communication Foundation


Windows Communication Foundation unifies the existing suite of .NET distributed technologies into a single programming model to improve the developer experience. This article introduces WCF so you'll be prepared to take advantage of all the new capabilities.

Aaron Skonnard

MSDN Magazine February 2006

WinInet: Enable HTTP Communication in Windows-Based Client Applications


The Internet provides the infrastructure for applications to communicate, and that can include non-UI communication between Win32-based applications. If you think beyond the standard browser usage of HTTP, you can use this protocol to retrieve information from Win32-based applications and save it to a Web server. After explaining how HTTP can be used in this way, this article shows how to use Microsoft SQL Server, ASP, IIS, WinInet, and Visual Basic to implement two examples. The first reports usage data-how often an application is used and by whom. The second monitors application errors and reports error details for use by helpdesk staff or engineers in the debugging process.

Todd Meister

MSDN Magazine June 2001

How to setup windows server 2008 to enable socket communication?

I wrote a simple socket program, which listens to the 82 port, then receives and sends data through it. I tested the program on my local machine and it works fine, but after I published the program onto my windows server 2008, it does not work anymore. I guess it should be the firewall causing the problem, so I added rules to allow 82 port for both in and out bound, and I also add my application to the allowed program list for passing firewall, but still doesn't work, how could I solve it?   The windows server 2008 machine has a public network IP address, while my workstation is in a local network without public IP address, I connect to server 2008 through a router which has a public IP address. Is that the problem?   thanks! Regards! directfriends.net

Wrox-Professional WCF 4-Windows Communication Foundation with .NET 4

Couple of weeks ago I got a paper copy of book Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner - Professional WCF 4: Windows Communication Foundation with .NET 4. This book has not a lot of pages, just about 400. Really, I don't remember when I saw so thin book about some technology. But maybe this book has not a lot pages, but a lot of interesting themes. First chapter is patterns and principles of SOA applications. This is the best chapter in this book. When I was reading this chapter I saw that authors have a lot experience of creating applications with Service-oriented architecture. Authors described all possible architecture principles, with which you can create SOA applications. And they did not limit themselves to the principles that are possible with WCF. I think that this chapter is "must read" for all developers, it is doesn't matter what technologies you are using: php, java or .net. And this is good luck that Wrox published this chapter online: Design Principles and Patterns. It is about 30 pages, so read it right now. Read more...

New to Windows Communication Foundation? - useful links

WCF - http://msdn.microsoft.com/en-us/netframework/aa663324.aspx (.net Framework Developer center, central resource for all things WCF) WCF 3.5 samples - http://msdn.microsoft.com/en-us/library/ms751514.aspx WCF 4.0 samples - http://msdn.microsoft.com/library/dd483346(VS.100).aspx (good resource to learn the basics by playing with samples) WCF screencasts - http://msdn.microsoft.com/en-us/netframework/wcf-screencasts.aspx .Net endpoint blog - http://blogs.msdn.com/endpoint/ (Blog by the .NET and AppFabric teams about WCF and WF development, deployment, and management) Bug report/ Feature request/ Feedback to the product team - https://connect.microsoft.com/wcf (There are useful resources mentioned at the bottom of this page as well) Detailed WCF security guidance - http://www.codeplex.com/WCFSecurity Detailed debugging using WCF tracing - http://msdn.microsoft.com/en-us/library/ms733025.aspx

Microsoft.NET version 3.0 Install Error: Installation failed for Windows Communication Foundation. M

Please help! I've been trying for the last day and a half to properly install Microsoft.NET version 3.5 so that I can install TurboTax and do my taxes. I was only on version 1.1. Multiple tries to upgrade to 3.5 was giving me a code 1603 error on install on "Microsoft.NET version 2.0a". I followed advice from forums here and elsewhere to uninstall and reinstall my prior versions. I also used Windows Install Cleanup before reinstalling. I keep getting to the same result when I try to go from version 2.0 to version 3.5. In my last attempt, I went all the way back to version 1.0 and installed each step up to 2.0 SP1 with (allegedly) no problems. This last time I decided to upgrade to 3.0 instead of going right to 3.5. Now I get the following error message: [04/03/10,04:07:14] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603[04/03/10,04:07:22] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.[04/03/10,04:07:22] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.[04/03/10,04:17:49] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603[04/03/10,04:17:57] WapUI: [2] DepCheck indicates Windows Communication Foundati

communication from one WINDOWS EXE to another in wcf [simple]

hi,   So what I need to make is a "remote control" program(exe) that should be able to turn on or off an another program(exe) running on computers connected by a network. I've done something similar with remoting, now I head WCF is the new remoting. But everything seems all web services and windows services and complicated IIS hosting and what not! I just need communication between two windows forms programs! I haven't been able to find ANYTHING at all on this! One windows forms program needs to turn the other one or off over a LAN network. thats all. Would really appreciate any links or pointers.  Thanks so much    

Windows Communication Foundation Step By Step

Hi all i'will begin to get in WCF Step By Step . please follow me in this case thanks  

Communication between one main workflow and several agent workflows - finding endpoint address of th



I have a main workflow service and another "agent" workflow service.  The agent workflow service will be hosted on a bunch of machines, all listening on the same port.  For example, the endpoint addresses of the agent workflow services would be: http://ServerABC:9700/SomeService, http://ServerDEF:9700/SomeService, and so on.

The main workflow service (which is hosted on a separate server) needs to determine at runtime the agent it should talk to.  For example: if the main workflow is passed a server name "ServerABC" as a parameter, it needs to figure out that it has to communicate with the agent on http://ServerABC:9700/SomeService.

The main and agent services are built using the designer. I am using context correlation between the main and the agent workflow services.

How can I set the endpoint address dynamically in the Send activity of the main workflow? 

Thanks in advance.

Current settings:

Below is a portion of the web.config file from the main workflow service.  Note the commented portion.  If I specify it that way, it works because it knows the address of the agent's endpoint. That's alright if the agent is running on only one server.  But I need to find that address at runtime in the main workflow service.


Communication using TCP Endpoint IP troubles help


I want to create a service library and a self hosting console app.

I want to deploy the app in my house with my computer with ip 71.57. XXX.XX but my router gives me 192.168.X.XXX. This is my app.config in my service library.


<?xml version="1.0" encoding="utf-8" ?>
 <compilation debug="true" />

  <binding name="TCPBinding">
   <security mode="None"/>

  <binding name="PipeBinding">
   <security mode="None"/>

  <service behaviorConfiguration="VTService.Service1Behavior"
  <clear />
  <endpoint address="ws" binding="wsHttpBinding" name="WsEndpoint"
   contract="VTService.IEvalService" listenUriMode="Explicit">
   <dns value="192.168.XX.XXX" />
   <certificateReference storeName="My" storeLocation="L

asp.net application to windows application communication


Hello All,

What are the different ways in which a web application can communicate to a windows application?

I have heard that activex control events can be handled in javascript to achieve this.

Does WCF or any new technology provide a better implementation for this?

Can the publish/subscribe architecture be used here?

Please help with your suggestions.


The installed version of Windows Communication Foundation does not match the version of the WSAT con


I  got this error after I installed the wsatui.dll for WCF Transaction.

The installed version of Windows Communication Foundation does not match the version of the WSAT configuration tool

anyone who can help me?

Thanks advanced

Frank Xu Lei--????,????
Focus on Distributed Applications Development and EAI based on .NET




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend