In some situations for Windows 10 users, if you let X-Plane attempt to auto-update it fails with “Permission Denied.”
You can work around this by running the X-Plane Installer directly (with X-Plane not running) to update X-Plane directly. Once you have 10.40, the next auto-update should work.