When the code reaches MessageBox.Show()
it throws an exception Object reference not set to an instance of an object
.
Here is my code:
WebBrowser webb = new WebBrowser();
webb.Navigate("https://www.facebook.com/logout.php?next=http://facebook.com&access_token=" + Settings.Default["token"].ToString());
MessageBox.Show(webb.Url.AbsoluteUri.ToString());
Do you see a reason why this might be the case ?