vb.net - Unable to cast COM object error -


I'm trying to use WebKit for its application in a STA thread.

When I debug error comes up:

More information: Type unable to COM object cast 'WebKit.Interop.WebMutableURLRequestClass' type interface' WebKit.Interop .IWebMutableURLRequest '. This operation failed because the IID '{C4042773-371F-427E-AFA9-9D4B358A0D93} with QueryInterface call on the COM component for the interface has failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE) ).

Here's an example I'm trying to do:

  & gt; New thread in the form of Dim AA (Addressoff asdf) & gt; Aa.SetApartmentState (ApartmentState.STA) & gt; Aa.start () & gt; & Gt; Private Sub asdf () linklist.SelectedIndex = rand.Next (0, linklist.Items.Count - 1) & gt; String = Linklists in the form of Dim Streagna Selected item & gt; Newlinkstring as string for each string & gt; Webkitbrowser.navigate ("URL") Thread.Sleep (10000) Next & gt; Linklist.Items.Remove (linklist.SelectedItem) & gt; Loop & gt; Last sub & gt; New thread in the form of Dim AA (Addressoff asdf) & gt; Aa.SetApartmentState (ApartmentState.STA) & gt; Aa.start ()  

I understand that because of this it is in a thread and libraries can not be loaded but how to access the thread to the library? I am struggling to resolve this issue throughout the day: (.


Comments