Missing Toolbar

nigel123

Newcomer
Joined
Nov 3, 2006
Messages
2
I am recieving a error message when I run my application that reads

System.InvalidCastException:

Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLAnchorElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class;
however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.
at My.UserControls.HTMLView.ExtractControls.ExtractInfoFromToolStrip(HtmlElement element, ToolStrip toolStrip)

The result of this is that a toolbar on my interface is not displaying and the images in the document displayed are missing. I have tryed using Interface and have not been able to solve this. Can anyone tell me how else I could approach this error to resolve the problem

Many thanks
 
Back
Top