Trying to automate Outlook as
Microsoft.Office.Interop.Outlook.Application myApp = new Microsoft.Office.Interop.Outlook.ApplicationClass();
Microsoft.Office
Same error exactly in the same place:
Outlook.NameSpace ns = application.GetNamespace("MAPI");
I have a Win 10 and Office 365 - both 64 bits - with no previous Office installation; I tried several solutions above and did too Office quick repair, to no avail.
After running a Office online repair it functions like a charm.