The second error causes the first. Open the node Links project, select SHDocVw. In the Properties window, change Insert Interop Types to false. You will need to deploy the assembly Interop.SHDocVw.dll, you will find the assembly output directory along with your program.
EDIT: after studying this error, I found a better way to do this. The problem is that only COM interface types can be embedded, not classes. Therefore, avoid using XxxxClass synthetic wrappers in your code. Do it like this:
foreach (InternetExplorer ie in new ShellWindows()) {
Which looks strange, you usually cannot use a new operator like an interface in C #. But actually supported for COM interfaces.
Hans passant
source share