A project cannot be shared under a descendant

This error has the following cause and solution: