MyWebPagesStarterKit version: 1.3.0
I built a page which uses the Twitter Status Feed section. Last night Twitter was doing scheduled maintenance, so their site was technically up, but not returning any data. My web site blew up in TwitterStatusFeed.cs in the GetTwitterXML function. Apparently there is no error handling for a situation where Twitter is there, but it refuses to hand over the status updates.
The error occurs on this line:
document.Load(reader);
I don't know much about C #, but I'm guessing this is because the reader comes back with nothing so the XMLDocument.Load method fails.
I think you can duplicate this error by editing this line and changing the URL to something that doesn't exist. Or you may have to use the correct URL and pass in an invalid UserName.
string xmlUrl = string.Format("
http://twitter.com/statuses/user_timeline.xml?screen_name={0}&count={1}", Username, MaxItemsToShow);
I'm attaching a text file with the stack trace produced when I edit the line above to have an invalid URL. I'm not sure if that is the exact same error that I got when their site was down for maintenance, but I suspect it's the same situation.
Let me know if you need any more details.
-- Bobby Neal