Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:56:52+00:00 2026-05-23T16:56:52+00:00

I have a duplex TCP connection between a Silverlight client and a WCF C#

  • 0

I have a duplex TCP connection between a Silverlight client and a WCF C# server. The server is constantly pushing updates up to the client. However after about ten minutes of user inactivity, any user operation that gets sent to the server results in an exception, although the updates continue successfully.

Given the period of time involved and the inactivity on the client side I’m guessing it involves the ReceiveTimeout setting. However when I attempt to set it on the client (see below), it doesn’t fix this.

        CustomBinding binding = new CustomBinding(new BinaryMessageEncodingBindingElement(),
            new TcpTransportBindingElement());
        binding.ReceiveTimeout = TimeSpan.MaxValue;
        EndpointAddress address = new EndpointAddress(testAddress);

        testClient = new TestClient(binding, address);

Do I need to set this on the server side as well as or instead of the client side?

If I do need to set this on the server, how would I do this, as I’m using OperationContext.Current.GetCallbackChannel<ITestClient>() to get the callback interface?

The callback interface doesn’t give me access to properties to set timeouts and I’m not sure what to cast it to to enable this. I tried setting it on the ServiceHost on the server side but this also didn’t appear to fix it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:56:52+00:00Added an answer on May 23, 2026 at 4:56 pm

    Turns out the answer is: it doesn’t matter. Setting it on the client side was technically correct, but according to Configuring Web Service Usage in Silverlight Clients:

    Caution: This value of receiveTimeout is not being respected in
    Silverlight 4 and setting it will not affect the behavior of the
    application.

    I have since tested this and verified it was the case.

    The answer ended up being implementing a keep alive call to the server once every four minutes (four minutes chosen because it’s half of the ten minute receive timeout, minus a buffer).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Periodically, the duplex Net.TCP connection between our Silverlight application and our WCF web service
It is possible to have WCF Client that connects persistantly using duplex over net.tcp
I have a client/server connection over TCP using send() and recv() . This is
I have a WCF chat service that accepts duplex tcp connections. A single duplex
I have setup a basic WCF client/server which are communicating via Named pipes. It
I have been building a client / server app with Silverlight, web services, and
See also How does a WCF server inform a WCF client about changes? (Better
I have a publish/subscribe scenario in WCF using net.tcp and Duplex callbacks. I have
I have a silverlight app that uses WCF both by polling Duplex and normal
I have a server/client project, I am using C# for coding, WCF as server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.