I have a com component, which i have registered and added as reference in my vb.net project. While trying to access its method I am getting the above error. Need your help.
Below is the code snippet
Dim testResult As Object = Nothing
Dim oxmldom As Object
Dim sXML As String
sXML = ""
testResult = CreateObject("ComReferenceDLL.iInterface1")
oxmldom = CreateObject("MSXML2.DOMDocument")
oxmldom = testResult.SampleMethod(sXML)
Here ComReferenceDLL is the COM component.