Работа с COM из NET. Исключение из HRESULT: 0x80040202

Egorich
Дата: 26.12.2009 14:21:19
Добрый день.

Пишу приложение, которое работает с InternetExplorer.
Нашёл статью:

При старте бъёт ошибку: Исключение из HRESULT: 0x80040202
    private  InternetExplorer Browser;
    protected Process[] procs;



private void btnStart_Click(object sender, System.EventArgs e)
        {
            Browser = new InternetExplorer();
            Browser.Visible = true;
            Browser.GoHome();
            procs = Process.GetProcessesByName("IEXPLORE");
            //Build event delegate to catch browser close event.
            SHDocVw.DWebBrowserEvents2_OnQuitEventHandler oDelegate = new
              SHDocVw.DWebBrowserEvents2_OnQuitEventHandler(Browser_OnQuit);
            Browser.OnQuit += oDelegate;     // Здесь: Исключение из HRESULT: 0x80040202
        }

В чём может быть ошибка?
Благодарю.
Egorich
Дата: 26.12.2009 14:22:16
Статья здесь: http://support.microsoft.com/kb/304991#appliesto.