locked
C# 0x800401E3 (MK_E_UNAVAILABLE) RRS feed

  • Question

  • Hello,
    Create Windows Service.
    Service returns the number of word documents that are open on the computer.
    But this code gives an error. But this code, not error by c# form authantication. 

     Application winObj = (Application)Marshal.GetActiveObject("Word.Application");
    foreach (var item in winObj.Documents)
    {
               count++;
    }

    (HRESULT özel durum döndürdü: 0x800401E3 (MK_E_UNAVAILABLE))


    1905


    • Edited by Özliimm Monday, November 12, 2018 2:26 PM
    • Moved by Stanly Fan Tuesday, November 13, 2018 1:28 AM From Winform
    Monday, November 12, 2018 12:08 PM

Answers

All replies