DEP 0600 while deploying a Windows Phone app

A stupid thing that happened to me several times and, because of the cryptic message, makes me lose time. It is the VS error message “ ” Error DEP0600 Can not deploy or debug it device “. ” It may come with a very explicit “Index (zero based) must be greater than or equal to zero and less than the size of the argument [...]