App-V application was unable to start correctly on Windows 10

A couple weeks ago I received an email regarding an issue with App-V packages unable to start correctly on the latest version of Windows 10 (Creators Update, build 1703). When App-V packages are removed and added it won’t start and produces an error. This blog post will take a closer look at this strange behavior on the latest release of Windows 10.

Application was unable to start correctly

When an App-V package is removed and re-added on Windows 10 (Creators Update, build 1703) the following error will be shown during the startup of the App-V package.

The application was unable to start correctly (0xc0000142). Click OK to close the application.

After the error, the App-V package is not able to start anymore and the only way to start the package again is to reboot the entire machine.

How to reproduce the error

Let me explain how to reproduce this error. In my case, I have a publishing server configured in my environment and once the user is logged on a couple App-V packages are added.

When I start Adobe Reader the App-V package starts fine without any issues.

Now let’s remove and re-add all the packages.

It will take a while before the application responds with the error message.

Possible cause of the error

Within the Windows event log, the following error is logged.

{Registry Hive Recovered} Registry hive (file): ‘\??\C:\ProgramData\Microsoft\AppV\Client\VREG\Packages\fc6e9f2f-48d8-4ad9-92a2-7d50ec692c31\SIDS\S-1-5-21-1375947726-2994949748-3919233647-500\a178a63a-cfb1-4dfa-b5c3-7aa03c11967b\REGISTRY\MACHINE\SOFTWARE.dat’ was corrupted and it has been recovered. Some data might have been lost.

According to the error, it seems the registry file of the App-V package is corrupt. To validate I have loaded the “Registry.dat” within the Registry Editor without any errors.

Conclusion

This error may not occur in a default App-V scenario but it’s possible when packages are regularly removed and added again. Currently, there is no real solution yet and the only way to avoid this nasty error is to reboot the machine. I hope Microsoft will follow up with an explanation and a fix. A very important takeaway: Always properly test the new releases of Windows 10 as they may break your environment!

Please let me know if you are encountering this same behavior or if you have any suggestions to further troubleshoot. Special thanks to Valery Atlas for reporting and helping troubleshoot this issue.

 

 

  • Leberschnitzel

    Hi Ryan,
    I was searching the internet because I have exactly that problem, reported here:
    https://social.technet.microsoft.com/Forums/en-US/05a827e3-ebd2-48da-9111-5d1b1d751bac/0xc0000142-only-on-windows-10-1703?forum=mdopappv
    I hope for help soon, because it’s kind of a joke that AppV, that should avoid reboots, now has such a problem 🙁

    • Hi Christian,

      Yes, I hope the App-V team will follow-up on this issue.
      In the mean time, I advice to share this issue on social media to get some attention to it.

      Cheers,
      Ryan

    • Leberschnitzel

      looks like this problem is even worse… if you unpublish an application that’s part of a connection group, the whole connection group is broken.
      Could you try if you get the same problem there?

    • I recently have a new device so I have to rebuild my lab again.
      I may take some time to rebuild it but when it’s up I will check it out.
      Meanwhile I will reach out to the MVP group again, because last time I did not get any response.

      Cheers,
      Ryan