Outlook Interop Exception

后端 未结 10 1400
故里飘歌
故里飘歌 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:11

    The fix of the 9.5 version didn't work for me, as there was no excessive 9.5 field.

    In my case, the problem was that when I downgraded to Outlook 2010 I have modified the installation location (i.e. not in the default ProgramFiles folder). However, windows didn’t update accordingly the value in ‘HKEY_CLASSES_ROOT\TypeLib{00062FFF-0000-0000-C000-000000000046}\9.4\0\win64’.

    After manually updating the value and pointing it to the right location, the problem was resolved.

提交回复
热议问题