The file <filename> could not be mapped to the source code control provider project <project>.

This error has the following cause and solution: