Home > Net >  System.Runtime.InteropServices.COM Exception: "type mismatch, error code: 80020005
System.Runtime.InteropServices.COM Exception: "type mismatch, error code: 80020005

Time:10-06

Code to run normally, but landed in box identification page, you will be prompted to quote the following error, please solve!!!!!!!!!!!!!!!

CodePudding user response:

Explain currentElement no outerHTML this attribute
Set a breakpoint see what was this element

CodePudding user response:

After screening, the outerHTML is own property, there is this problem and relevant websites, some web pages have a third party controls, is the problem?

CodePudding user response:

No one can solve this problem?

Of the target System. Reflection. TargetInvocationException: call abnormal happens, - & gt; System.Runtime.InteropServices.COM Exception: type mismatch, abnormal (from HRESULT: 0 x80020005 (DISP_E_TYPEMISMATCH))

CodePudding user response:

Top yourself

CodePudding user response:

OuterHTML htmlStr type does not match with you, you look at the third-party libraries you reference outerHTML what type is it

CodePudding user response:

Via checking, third-party libraries is outerHTML type string

CodePudding user response:

CurrentElement. OuterHTML triggered type System.Runtime.InteropServices.COM Exception Exception

CodePudding user response:

Top yourself, type mismatch problem how to solve,
  •  Tags:  
  • C#
  • Related