开发者

Windows Service WebBrowser DocumentCompleted Bug

I'v开发者_开发知识库e 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜