1

Webbrowser component is hosted in my winForm application. On one site occurred JS error and webbrowser show me error window. "Unable to get property 'call' of undefined or null reference" The same error occurred in installed IE, I have seen it in debug mode, but IE doesn't show this error window. I need to hide this window in my application too.

I can't set scriptErrorSuppressed = true because in this case window for select certificate is not opened too, and I can't open site page at all.

What I have tried:

  1. document.Window.Error += new HtmlElementErrorEventHandler(Window_Error); - event is not fired at all

  2. IOleCommandTarget::Exec - it occurs after error window was closed, and doesn't take affect to this window

Is there any way to get rid from this window?

error window

Translation:

Webpage error Do you want to debug this webpage? This page contain errors that that might prevent it from displaying or working correctly. If this page has not been verified, press No. "Unable to get property 'call' of undefined or null reference"

Vitor Canova
  • 3,918
  • 5
  • 31
  • 55
  • Could you translate your exception message to english? – Soner Gönül Jul 18 '14 at 10:40
  • Of course, sorry: Webpage error Do you want to debug this webpage? This page contain errors that that might prevent it from displaying or working correctly. If this page has not been verified, press No. "Unable to get property 'call' of undefined or null reference" – Alex Scherbinin Jul 18 '14 at 10:51

2 Answers2

0

I have eliminated this window by setting "Disable Script Debugger" to "yes" in registry HKCU\Software\Microsoft\Internet Explorer\Main

0

If somebody uses VisualStudio and found this question, also see

Debug->Options & Settings and select Just-In-Time and Uncheck Script

Community
  • 1
  • 1
Stefan
  • 10,010
  • 7
  • 61
  • 117