Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...