views:

146

answers:

2

I've been building a Windows Service to create a WebBrowser object to navigate, login, and download a site's HTML. However, I recently discovered this bug which prevents the DocumentCompleted event from firing if the WebBrowser is not visible:

http://support.microsoft.com/kb/259935

I've got to assume this is because the Windows Service doesn't allow for a GUI and therefore this bug is tripped. What is the best workaround for this? Thanks for your help.

A: 

You can also use httpWebRequest for this. But its time consuming job while developing. Wont this help?

Shoban
A: 

Microsoft does not support using WinInet APIs within the context of a System Service. That means webbrowser is not supported too.

Sheng Jiang 蒋晟