private void _component_AsyncInvocationError(object sender, AsyncInvocationErrorEventArgs e) { if (_webBrowser.Document != null) { _webBrowser.Document.InvokeScript("__asyncInvocationError", new object[] { e.InvocationId, e.Error.Message }); } }