Outlook Interop Exception

后端 未结 10 1323
故里飘歌
故里飘歌 2021-01-25 07:49

Trying to automate Outlook as

Microsoft.Office.Interop.Outlook.Application myApp = new Microsoft.Office.Interop.Outlook.ApplicationClass();    
Microsoft.Office         


        
10条回答
  •  时光取名叫无心
    2021-01-25 08:01

    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.

提交回复
热议问题