Question

Can you guys tell me how it should be done? I have out of browser app with a button. The Button does this:

Application.Current.CheckAndDownloadUpdateCompleted
  += (object sender, CheckAndDownloadUpdateCompletedEventArgs e) 
  => MessageBox.Show(e.UpdateAvailable.ToString());

Application.Current.CheckAndDownloadUpdateAsync();

I run the app, add something, rebuild the app, click on the button - it says false.

What could be wrong with that?

UPD: BTW... it's OOB App

UPD2: I tested with Fiddler. It get's the xap, but still doesn't update

Was it helpful?

Solution

There is an Error member on the EventArgs, maybe you should check it?

For instance:

if (e.Error != null)
{
    if (e.Error is PlatformNotSupportedException)
    {
        // Require a Silverlight plugin update
    }
    else if (e.Error is SecurityException)
    {
        // Require an elevation
    }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top