Cannot change project to <Project>

This error has the following cause and solution: