C#-Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}

 

异常信息如下

捕获到执行这句时异常:

Excel.Application ep = new Excel.ApplicationClass();

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a.

 

解决:

com组件中修改如下

 

 

 

posted @ 2019-11-25 11:18  JinweiChang  阅读(577)  评论(0编辑  收藏  举报