Object reference not set to an instance of an object...
Posted on 2011-03-01
This following C# code snippet throwing an error when I execute in my program.
ResultCode leResultCode = moSearch.WebDedupeContact(ref lsErrorInfo, ref loIXMLDoc, lsFirstName + " " + lsLastName, "", "", "", "", "", "", Constants.IntelliSearch.MinimumMatchScore);
The error is: Object reference not set to an instance of an object...
I have view the definition for the class ResultCode as shwon below:
ResultCode WebDedupeContact(ref string ErrorInfo, ref IXMLDOMDocument2 XMLDoc, string SlxContact, string SlxAccountID, string Address, string City, string State, string Postcode, string Country, short MinimumMatchScore);
And on the top of interface where we got this declaration also have these attribute as well for the interface:
What are these mean? and most importantly where could this error be generated from?