Skip to content

Common Error Codes

Mike Griese edited this page May 23, 2017 · 2 revisions

Here are some of the more common error codes that you might encounter while testing your distro launcher project:

For the rest of this document, we'll assume that your distro's executable is mydistro.exe, and that your distro's name (the MyDistroLauncher::_myName member) is set to L"MyDistro-1.0".

Error: 0x80070002 - File Not Found

This is likely caused by uninstalling your distro's app without first calling mydistro clean. This is due to a bug in WSL that's being fixed currently (as of May 18, 2017).

Workaround

Just install you app again, and call mydistro clean. That should clean up your registry, and you should be able to install it again perfectly fine.

Error: 0x8007007e

WSL isn't installed on you machine. Make sure to go enable WSL from the "Turn Windows features on or off" dialog in the Control Panel.

Error: 0x80040302

I believe this is usually a result of your package being in a semi-installed/uninstalled state. Make sure that any open consoles or explorer.exe windows aren't in the %localappdata%\Packages\<your package> directory. Once that's done, try cycling through installing/uninstalling the appx again, then try installing the appx again, run <launcher> clean, then try running your launcher again.

If that fails, uninstall the appx again (if it's installed) and make sure to manually delete %localappdata%\Packages\<your package>\LocalState\rootfs. That should clear it up.