Hy, i'm trying to get the output text from a page, but i receive the following error:
System.Null.ReferenceException : Object reference not set to an instance of an object.
webBrowser1.Navigate(URL);
try
{
string doc;
doc = webBrowser1.Document.Body.OuterText;
if (doc != "Invalid Arguments !")
{
//DO something
}
}
catch (Exception k)
{
MessageBox.Show(k.ToString(),"Error");
}