Upgrading code from Vb.NET 2003 to 2008 , 'HTMLElementCollection' is ambiguous in the namespace 'mshtml'.
Posted on 2007-12-04
I'm upgrading a very large app to vb.net 2008 from 2003 and I'm running into a lot of issues. I get this error "'HTMLElementCollection' is ambiguous in the namespace 'mshtml'."
Dim all As mshtml.IHTMLElementCollection = doc.getElementsByTagName(strTagName)
Dim all As IHTMLElementCollection = doc.getElementsByTagName(strTagName)
I get the same error, these were not present when my code was compiled in 2003. Ive taken option strict off and avoided a lot of warnings but this one needs to be fixed.