Sometimes I have found a "clean solution" doesn't always work, especially if a file is stuck in a state in which it can't be deleted while VS is open. Sometimes manually deleting the obj/bin folders versus doing a "clean solution" from VS works.