I was getting this error in VS 2005 with a web project at work. I did a little googling and found some interesting information. The one thing I found that was a quick fix was to set the batch attribute to false on the compilation node. Note that this should only be done while in development.
<compilation debug="true" batch="false">
I found some helpful information on this issue here.