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 9212359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:30:29+00:00 2026-06-18T01:30:29+00:00

I have a Silverlight 5 application which communicates with the server by a WCF

  • 0

I have a Silverlight 5 application which communicates with the server by a WCF service.

Most users that use the application are running it inside a browser (mostly Internet Explorer, but also other browsers are used) and a few install it OOB (Out Of Browser).

When the application starts, It checks for newer versions and upgrade if necessarily. Nothing out of the ordinary here.

Now and then, mostly in evenings and weekends, I do upgrades on the solution. That may be changes in the database, changes in the WCF service, changes in the Silverlight application itself, or a mix of all. And in most cases, that is absolutely no problem.

My problem is that some users never close their web browser. Some users even work via a Citrix window, and only close the Citrix window and goes home after work, letting the Silverlight application run and exist in the web browser. And some just don’t close the browser at all.
Or if they run OOB, they let the application stay open. Those are my problem. Because they will never check for new updates. The Silverlight application will never upgrade, and also not fit to the new WCF service which may be upgraded.

That all makes the Silverlight applications crash and throw strange exceptions because the world around has changed.

Has anyone had similar problems and actually found a good solution?

I have tried:

  • Creating a Timer that resets at any keyboard- or mouse clicks and exits the application after a given period of time with no activity. But it seems like this timer sometimes don’t count, like when dosconnected from RDP or Citrix session.

  • Checking for updates every time a certain control or window is showing. But that is not a good solution because all users may not use the same. It may also interrupt the user if they are working with something.

But they all seem to me like a little tacky work-arounds.

Any suggestions, anyone?

  • 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-06-18T01:30:30+00:00Added an answer on June 18, 2026 at 1:30 am

    Restarting the timer while the user is active does not make sense to me. What if they are active at the time an update is released? Surely it is better to be interrupted than for the app to fall over?

    Better to run the timer on a fixed interval. It would call CheckAndDownloadUpdateAsync and prompt the user if a restart is required.

    For the fringe cases where the timer doesn’t run or a critical update is published between intervals, you could try executing your update logic in the App.Application_UnhandledException method.
    Just don’t forget to mark the event as handled where you find there is indeed an update to install…

    This way you should have complete coverage.


    Edit: For In-Browser applications you only need to worry about when to refresh the page, as this can be enough to ensure the XAP is the latest.

    Your timer could call some JavaScript to achieve this, but I think it would be better to simply trigger the refresh in the App.Application_UnhandledException event. You could write state to IsolatedStorage before hand if you really want to make this seamless.

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

Sidebar

Related Questions

I have a Silverlight application that communicates to a Silverlight-enabled WCF service, both of
I have a silverlight application which users will be running in various time zones
I have a client-server Silverlight application, which is use Socets. I have server appliaction
I have a silverlight application which users can install out-of-browser . When the right-click
I have a Silverlight 3 application which needs to call WCF service. The WCF
I have silverlight 2.0 application and which uses WCF service to get data and
I have a silverlight application that uses wcf service. This application is shown from
I have Silverlight application which connects to a WCF service. If i open the
I have a silverlight application which fetches data from a WCF Service hosted under
I have a Silverlight application which interacts with a WCF service. It periodically receives

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.