c# xml error: Object reference not set to an instance of an object.
Posted
by every_answer_gets_a_point
on Stack Overflow
See other posts from Stack Overflow
or by every_answer_gets_a_point
Published on 2010-04-14T19:30:50Z
Indexed on
2010/04/14
19:33 UTC
Read the original article
Hit count: 178
here's my code:
foreach (string c in colorList)
{
doc.Load(@"http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" + c + @"&username=user&password=pass");
textBox1.Text += doc.SelectSingleNode("WhoisRecord/registrant/email").InnerText + ",";
}
for the second line of code (textbox1...) is generating this error what am i doing wrong?
© Stack Overflow or respective owner