I encountered this problem after installing IE10, finding it did not work well on my Windows 7 system, and uninstalling it. Now, back to IE9, VS2010 could not attach to the
See the "Here's the solution" comment. I had the answer when I posted it, but wanted to share it and avoid more wasted hours by others.