In msconfig uncheck the programs that start at startup and reboot. If you won't receive that error then check one program at a time until the error appears. Doing this you will know which program has an invalid registry entry. Usually the problem disappears after reinstalling that program.