Web-Update Error 0x80070490

Copper Contributor

My app installs without issue with an appinstaller file. And the updates from the web are working fine. However, after the app updates itself once, I have seen many of my test machines (maybe all). Fail to install any future updates. The eventviewer shows an error code 0x80070490, with a message of "Element not found". 

 

This is rather puzzeling, as on that same machine if I click an ms-appinstaller:?source=... link, the appinstaller offers to update the app and does so successfully. After that, the app searches successfully for updates and also installs a new update once.

 

Triggering a "CheckUpdateAvailabilityAsync()" from code leads to a "PackageUpdateAvailability.Unknown" result.

 

I have been unable to find that error code on the internet, and the problem arises for a longer time now, across multiple updates and devices.

 

Any hints would be very much appreciated

7 Replies

Hi @marvin_r,

 

It seems like something is happening during the update to cause the app to lose its appinstaller file association.  

 

What build are you on? If you could please file a Feedback Hub bug with a repro under Developer Platform -> App deployment  we can have someone take a look and determine the root of your issue. 

 

Best,

Sharla

 

 

@ShakersMSFT

I have reproduced and filed the feedback here: https://aka.ms/AA7ayp9

Unfortunately, I might have selected the wrong category? Sorry about that. Let me know if you want me to record again. Also, my users are all using Windows with German selected as their UI-language, I hope that's not a problem for the diagnostics.

This shows the update not working. I will try to catch a working update when I get a chance to do so.

@marvin_r 

 

Thank you for doing that. Would you mind filing the feedback one more time, except this time when you repro the issue, please don't manually install with the AppInstaller file at the end. This way we can capture what the app's state is when the issue is occurring. Thank you!

 

Best,

Sharla

@ShakersMSFT 

 

I have filed this again: https://aka.ms/AA7c72w

 

Hope this helps? Let me know if you could use any more details. I'm happy to record more feedback, if that helps.

 

I have verified in the server logs that a fresh appinstaller install of our app does ping our server for updates as expected.

In the state that throws the error previously described, I have verified that our server does not get accessed at all - the logs don't show any activity.

 

As for versions: my test machines here all running Windows 1909 with all updates installed.

 

 

The app is built on my 2004/20H1 - 19041.84 desktop with most recent VS 16.4. The app consists of a WPF project and some UWP components. The entry point is the wpf application (Windows.FullTrustApplication), which runs in the background and starts a UWP window via protocol handler.

 

If source code access would help, we could do that if you have a secure (non-public) way for me to send you the file.

@Sharla Akers 

 

If there is anymore info you or anyone could use, I would very much like to provide it.

 

And any suggestions on how to get updates to work reliably would also be much appreciated.

Hi @marvin_r,

 

You've provided enough information for us, the engineers are still looking into the issue. We are looking into the root cause of why the app installer association is disappearing after an update takes place. 

 

Best,

Sharla 

I'll mention that I have seen a similar situation with AppInstaller seemingly disappear. A reboot cleared the problem on the machine.  I did not investigate but assumed it was a windows update.