COM Exception 0x800A11F9 - Unable to activate application

I have a C # 2.0 project (WinForms) in which I try to activate the word 2003 (the word is installed on the system). Using the following code:

private void ActivateWord()
{
    this.Activate();

    if (m_WordDocument != null)
    {
        try
        {
            m_WordDocument.Activate();

            if (m_WordDocument.Application != null)
            {
                m_WordDocument.Application.Visible = true;
                m_WordDocument.Application.Activate();
            }
        }
        catch (COMException comEx)
        {
            ShowError(this, comEx.Message, false);
        }
    }
}

When my application executes m_WordDocument.Application.Activate (), I get COM Exception 0x800A11F9.

Stacktrace:
    "System.Runtime.InteropServices.COMException (0x800A11F9): Cannot activate application  
        at Word.ApplicationClass.Activate()  
        at Roxit.SquitXO.GUI.DocumentCreatie.frmSelectVeld.ActivateWord()"

What could be causing this problem?

+3
source share
3 answers

COM error 0x800A11F9 is a known resolution problem that occurs when an invalid user (for example Network Service) tries to activate an Office application.

IIS WinForms. , , Windows, Local Service Network Service.

, , , Log on .

: , , Word, COM + , , Word.

+5

, ( - flakiness), ASP.net, winforms, ?

0

, Sitecore , , ( "WordService" ) Sitecore . WordService , Word, , , Word , SiteCore, .

0

Source: https://habr.com/ru/post/1742264/


All Articles