469,599 Members | 2,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

WebBrowser com exception

Hi all.
I'm using the WebBrowser class and sometimes i get this exception:

[COMException (0x80004005): Error HRESULT E_FAIL has been returned from a
call to a COM component.]
System.Windows.Forms.IWebBrowser2.Navigate2(Object & URL, Object& flags,
Object& targetFrameName, Object& postData, Object& headers) +0
System.Windows.Forms.WebBrowser.PerformNavigate2(O bject& URL, Object&
flags, Object& targetFrameName, Object& postData, Object& headers) +63
System.Windows.Forms.WebBrowser.PerformNavigateHel per(String urlString,
Boolean newWindow, String targetFrameName, Byte[] postData, String headers)
+102
System.Windows.Forms.WebBrowser.set_Url(Uri value) +72
System.Windows.Forms.WebBrowser.set_DocumentStream (Stream value) +76
System.Windows.Forms.WebBrowser.set_DocumentText(S tring value) +202

When i get this exception i have to reboot my machine, for the component to
work again.
The exception is generated by this line: webBrowser1.DocumentText = "";
And only when used from Asp.net page, console or form work fine.
Thanks.
Sharon.
Nov 17 '05 #1
0 1621

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Shane Story | last post: by
5 posts views Thread by SPE - Stani's Python Editor | last post: by
1 post views Thread by eskildb | last post: by
1 post views Thread by eskildb | last post: by
8 posts views Thread by Prosperz | last post: by
11 posts views Thread by Webbert | last post: by
7 posts views Thread by - Electronic.HR - | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.