If you add a reference to Microsoft Excel and then try to use it
within your ASP.NET application you may receive the following error.
Server Error in '/excel' Application.
Retrieving the COM class factory for
component with CLSID {00024500-0000-0000-C000-000000000046} failed due
to the following error: 80070005.
Example Application
The problem is that by default Microsoft Excel as a COM object can only activated by the following accounts:
- Administrator
- System
- Interactive
When you are running your ASP.Net account on Windows XP your web application is running as the ASPNET account.
The way to resolve this issue is to edit the DCOM configuration settings for the Microsoft Excel Application object.
Configure DCOM
Note: Remember if you are running on
Windows 2003 Server you must use the application pool identity as the
account and not the ASPNET account.
分享到:
相关推荐
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}。该文档详细列举了操作excel,word等office软件的asp .net应用部署在IIS服务器所遇到的以上异常的所有处理办法
Retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154. 收藏 Description: An unhandled exception occurred during ...
Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154. 而客户又不想在这台电脑安装MSSQL,所以我们只需要在没有安装...
Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154. 而客户又不想在这台电脑安装MSSQL,所以我们只需要在没有安装...
错误提示:Retrieving the COM class factory for component with CLSID{96749377-3391-11D2-9EE3-00c04F797396}FAILED DUE TO THE FOLLOWING REEOE :;800700E找不到指定 模块{exception form hresult 0x8007007e}
检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件问题整理
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 没有注册类 (Exception from HRESULT: 0x80040154 (REGDB_E_...
主要用于解决在使用office的dll操作后台word文件时候,在本机运行可以,但是在IIS服务器上会报一个 Retrieving the COM class factory fro component with CLSID {000209FF-0000-C000-000000000046} failed due to ...
Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154. 而客户又不想在这台电脑安装MSSQL,所以我们只需要在没有安装...
Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800736b1. Description: An unhandled exception occurred during the ...