what WebBrowser are you using?
WebBrowser class from System.Windows.Forms
or something else like
WebBrowser control from System.Windows.Controls
because the second one returns a Document of type object and I've tested the first one