I have C# .NET 2.0 code that behaves incorrectly only when run on one Windows
Server 2003 (32 bit) machine with .NET 2.0 installed. And then, only the
first time. And then, only when run from a CDrom. It will not fail on the
local disk or network share.

I have a WindowsForms application with a WebBrowser class on a form.

In the DocumentCompleted event, I do...

HtmlElementCollection divTags =
webBrowser1.Document.GetElementsByTagName("div");

These documents are static docs loaded from the application directory.

The document which has the DIV tag is loaded and the collection shows a
count of zero the first time it is run on this machine from a CDrom. After
that, it finds the DIV tag everytime. If I reboot, we are back to not finding
it the first time. Right before the GetElementsByTagName() method, I dumped
the Document.Text to the log file - indeed, there is the DIV tag.

Any ideas?