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
We solved a similar issue registering again all the dll's in
C:\Program Files\Common Files\Microsoft Shared\VS7Debug
C:\Program Files (x86)\Common Files\microsoft shared\VS7Debug
For first one remember to use:
%systemroot%\System32\regsvr32.exe
and for 2nd ones (32 bit):
%systemroot%\SysWoW64\regsvr32.exe
If that is not enough go to VS debug menu and go to Options and configuration > Just-In-Time, uncheck all the options there (Administered, Native, Script) and click OK
Go to some place and check again those options and click OK again.