This is a bug in VS2010. I was able to publish 24 times without any problems. The 25th time refused to work, unless I did a right click on the project and published. I was getting the exact same error with no warnings. I have all the latest updates and did not change any settings in VS2010.