Hi,
I am working on a simple application with a webbrowser control. When I go to some of the URLs, an error message pops up something like "Internet Explorer Command Line Error". I am not sure about the exact wording since I use it in a non-English language.
Is there a way to cancel this so that I don't have to close this message all the times?

1 answers
This isn't an error message that I recognize.
I imagine that it's probably not an 'invalid URI' exception which you can catch from C# using a try/catch block:
You can, of course, get HTTP errors such as 404 if the page can't be found. Could it be one of these?
If it is, then there are ways to catch it. See this thread.
answered one year ago by:
17279
108
As I said, it is in my local language and I cannot uninstall and reinstall IE right now, so I am posting the error screenshot, maybe you could figure out what it is. It is about javascript but I don't know how to disable it if it can be. The error does not pop up when I use IE. It pops up within the webbrowser control of the application. http://2.bp.blogspot.com/_blhEguGIcpM/S-QqCY9aL1I/AAAAAAAAAcg/oCExF3UdGGw/s720/error.jpg
17279
Well, I have been able to figure out that there's an error when the web browser control attempts to run the javascript file dimensions.js. The error is in line 230 - parent.offsetLeft is either 'null or not an object'. However, I've no idea why the script runs OK in IE but not in the WebBrowser control and, without knowing that, I think you'll just have to live with it.