We solved a similar problem by registering the entire DLL again in
C:\Program Files\Common Files\Microsoft Shared\VS7Debug C:\Program Files (x86)\Common Files\microsoft shared\VS7Debug
For the first, remember:
%systemroot%\System32\regsvr32.exe
and for the second (32 bit):
%systemroot%\SysWoW64\regsvr32.exe
If this is not enough, go to the VS debugging menu and go to "Settings and configuration"> "Just in time", clear all the settings there ("Administration", "Native", "Script") and click "OK"
Go to a location and check these settings again and click OK again.
source share