Outlook 2007 from C# - COM exception, TYPE_E_LIBNOTREGISTERED

后端 未结 4 1244
情书的邮戳
情书的邮戳 2020-12-06 12:01

I\'m trying to make a program that would open new Outlook 2007 message.

I\'ve referenced from COM tab Microsoft Outlook 12.0 ObjectLibrary.

These items showe

4条回答
  •  没有蜡笔的小新
    2020-12-06 12:55

    Office is not properly installed on that machine. You can verify that with Regedit.exe, navigate to HKEY_CLASSES_ROOT\Interface\{00063001-0000-0000-C000-000000000046}\TypeLib to verify the type library GUID (should be {00062FFF-0000-0000-C000-000000000046}), then to HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046} to verify that the type library is indeed properly registered, using the correct type library version number. The latter part should be the problem.

    If the target machine runs a 64-bit version of Windows, try setting the Project + Properties, Build, Platform Target to x86.

提交回复
热议问题