Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154.
我的系统中没有 ms-office。我在我的 .net 项目(后面的 C# 代码)中添加了引用“Microsoft.Office.Interop.Excel.dll”。我从 BELOW 行得到上述错误
Application excel = new Application();
当我安装了 ms-office 时,它工作正常。我应该在不安装 ms-office 的情况下解决它。只能通过添加dll。需要帮助。谢谢你的建议。