问题描述
当我尝试使用excel interop c在服务器中创建excel文件时出现以下错误#
System.Runtime.InteropServices.COMException(0x80040154):检索COM由于以下错误,CLSID为{00024500-0000-0000-C000-000000000046}的组件的类工厂失败:80040154未注册类(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))。
我的代码在我的本地系统中运行,但是当我尝试部署并运行相同的时候我收到此错误?
解决方案是什么?
Am getting below error when i try to create excel file in server using excel interop c#
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
My code is working in my local system, But when i try to deploy and runs the same am getting this error ?
What is the solution ?
推荐答案
这篇关于在服务器中创建excel时出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!