Uploading sketches sometimes works, sometimes doesn't

At any time, did you bother to reboot your PC?