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).