Solution to "Error" in Windows Mobile Device Center when trying to dock a Windows Mobile Phone

This is an awesome error message:

I have found that manually killing wmdc.exe in Task Manager and then restarting helps.