Silverlight chat application using WCF full duplex

Last week I have been started to read about full duplex wcf and his implementation in silverlight applications.I have read tons of articles on MSDN and tons of blog and forum posts.

Recently I have found solution for chat application on this blog

so I have little modified that application but it is basically same application.This application is based on this blog post of Dan Wahlin :

Everything that you need to know about building wcf full duplex application for silverlight you can find on msdn :

and for accessing wcf duplex from silverlight client:

This application is also based on same articles above.This is simple chat application that has no chat rooms.Same concept you can use for developing multiplayer online silverlight games.

If you want to modify this application to add rooms you can look some useful pattern for that  List-Based Publish-Subscribe  :

What I have get when I have finished project looks like this :


Only thing that you need to do to make this project work for you is to change url of your wcf web service in page.xaml.cs .

this.pusher = new PushDataReceiver(



                “Silverlight/ISilverlightChatDuplexService/InitiateDuplex”,    // The Wcf function or action.



Demo project : SilverlightChat



7 Comments on Silverlight chat application using WCF full duplex

  1. Todd morrison
    February 23, 2009 at 12:16 am (15 years ago)

    Yeah, this is pretty much how we are doing collaboration.
    Now, wouldn’t it be cool if someone setup a peer-to-peer resource framework using duplex?!

  2. Radenko Zec
    February 23, 2009 at 8:53 am (15 years ago)

    Todd.That is only matter of time 🙂

  3. Patrick
    August 2, 2009 at 8:59 am (15 years ago)

    I’m using VS 2008, and I’m having a problem with the svc file. I’m currently receiving the following error: “Metadata publishing for this service is currently disabled.” I tried editing the web.config file following the instructions on this page…

    …but had no luck.

    Any ideas would be most appreciated.

  4. Radenko Zec
    August 4, 2009 at 3:52 am (15 years ago)

    Patrick. You are on the right way. You need to modify web config to enable metadata publishing for WCF service.
    You have all information on that site. Read it again.

  5. Anil Pandey
    August 6, 2009 at 12:57 am (15 years ago)


    i check this application that is very nice, but while running the application i m getting the Soap error that Soap 11 and soap 12 mismatch.

    once i resolve that i m getting the error that the Remote server returned an error NOT FOUND.

    can you please help me out in solving this error.

    Anil Pandey

  6. Radenko Zec
    August 6, 2009 at 5:42 am (15 years ago)

    Hi Anil.You have maybe changed web config file on server and put some error code in it. For example incorrect binding name…
    First check your WCF server config file and check your service is up and running.

  7. Zain Shaikh
    October 3, 2009 at 10:04 pm (15 years ago)

    really good effort, thanks for providing the source code.