Microsoft.Office.Interop.Word Retrieving the COM class factory for component with CLSID failed due to the following error: Access is denied

0

While trying to create a Instance of new Microsoft.Office.Interop.Word.Application I am getting error as below.

try
{
    Console.WriteLine("Begin.");
    Application wordApp = new Microsoft.Office.Interop.Word.Application { Visible = false };
    Console.ReadLine();
}

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I have tried the solutions suggested in Microsoft Office Interop Error also noticed StackOverflow question with no ans's.

I have Installed the Primary Interop Assemblies Redistributable and Visual Studio 2010 Tools for Office Runtime (vstor_redist).

c#
ms-word
office-interop
word-interop
asked on Stack Overflow Feb 10, 2020 by Shubh • edited Feb 10, 2020 by Cindy Meister

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0