Could not read state file

My projects keep coming up with this error:

Warning 1 Could not read state file "obj\Debug\ResolveAssemblyReference.cache". Exception has been thrown by the target of an invocation. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 0 0

The help file doesn't exist for it.

What am I doing wrong, and how do I cure it please?

[352 byte] By [PeterToye] at [2008-2-18]
# 1

Could you supply a little more information? For instance, when are you getting this error. What action are you performing when this occurs? Is this after you renamed a class, namespace or assembly and tried to recompile?

Without knowing any details, Its hard to make a guess, but one thing you can try is closing your solution, deleting the file in question, and then reopening your solution.

TobinTitus at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
It usually happens after a major edit - moving code around the place or renaming something (as you suggest). Renaming the file worked, but it didn't come back when rebuilding which seems odd. So I don't know if it worked or not.
One issue may be that I made a copy of the original directory (and its subdirectories) when converting to Beta 2, so it's possible that the directory structure isn't quite right.
PeterToye at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...