Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005
Windows Service下调用Outlook组件出现错误:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005
解决方案:
打开注册表regedit并定位到HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0006F03A-0000-0000-C000-000000000046}找到AppId的值{00020D09-0000-0000-C000-000000000046}
打开组件服务dcomcnfg
在组件服务中根据第一步获得的AppID修改运行应用程序的用户账户为交互式用户
作者:舍长
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.