在服务器上创建excel文件时出现错误.
问题描述:
我正在使用Microsoft.Office.Interop.Excel命名空间.
我在服务器上运行应用程序时未在服务器上安装ms office.
由于以下错误,检索具有CLSID {00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154."
MS Office安装在我的本地计算机上,并且在我的本地计算机上运行正常.
有没有可能解决此问题的方法,请帮我解决这个问题.
I am using using Microsoft.Office.Interop.Excel name space.
ms office is not install on server while running application on server i am getting this error.
"Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154. "
MS Office install on my local machine and it is working fine on my local machine.
is there any possible way to solve this problem please help me out this.