nigel123 Posted November 7, 2006 Posted November 7, 2006 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.