异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
来源:互联网 发布:淘宝直播要用什么手机 编辑:程序博客网 时间:2024/06/16 00:26
环境及异常信息说明
环境说明: Win2008 R2(中文版) x64 、IIS 7.0
功能说明:上传Excel到服务器,并在服务器端读取Excel中的数据;
异常信息:Retrieving theCOM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
处理过程
1.服务器端安装Office Excel软件;
2. 【开始】--【运行】--输入“Dcomcnfg”--【确定】,打开【组件服务】窗口
3.【组件服务】--【计算机】--【我的电脑】--【DCOM配置】--【Microsoft ExcelApplication】(x64为系统需要按照下面的方法配置,才能找到)
若找不到【Microsoft Excel Application】,请参照以下方法:
①【开始】--【运行】--输入“mmc -32”--【确定】,打开【控制台】窗口;
② 选择【文件】—【添加/删除管理单元】--在“可用的管理单元”中选择【组件服务】--单击【添加】--【确定】;
4. 右键--【属性】,在【标识】选项卡中选择“下列用户”,填入用户的用户名和密码(Administrator即可),如图:
5. 【安全】选项卡中,“启动和激活权限”、“访问权限”都选择【自定义】,如图:
”启动和激活权限“中,点击【编辑】--【添加】—“IIS_IUSRS”用户,并在权限中选择【本地启动】、【本地激活】,如图:
”访问权限”中,点击【编辑】--【添加】—“IIS_IUSRS”用户,并在权限中选择【本地访问】,如图:
点击【确定】,即可。
- 异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
- Retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following err
- Retrieving the COM class factory for component with CLSID {00024500-0000-000
- Retrieving the COM class factory for component with CLSID {00024500-0000-000 .
- Retrieving the COM class factory for component with CLSID {00024500-0000-000 .
- IIS Excel操作问题解决 Retrieving the COM class factory for component with CLSID {00024500-0000-000
- Retrieving the COM class factory for component with CLSID {00024500-0000-000
- Retrieving the COM class factory for component with CLSID
- Excel上传服务器后拒绝访问异常,Retrieving the COM class factory for component with CLSID ...
- Retrieving the COM class factory for component with CLSID {xxxx} failed due to the following error:
- 部署到服务器后,导出Excel发生错误Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C00
- System.Runtime.InteropServices.COMException (0x8000401A): Retrieving the COM class factory for component with CLSID
- 遇到的问题--Retrieving the COM class factory for component with CLSID
- 在windows10下excel导出Retrieving the COM class factory for component with CLSID .. failed due to the fol
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID(转)
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- 决胜终端市场 微软“特赦”盗版软件仅是权宜之计
- 常用界面控件种类和使用方法、常用控件的事件响应方法、常用内置视图种类和使用方法
- Mybatis 批量出错
- MSP430之解错篇
- PAT A 1098. Insertion or Heap Sort (25)
- 异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
- DeployR 7.4 released
- [ios专项]ios socket 之常规socket以及第三方开源类库AsyncSocket
- 使用Eclipse调试Java 程序的10个技巧
- C语言实现只用加法和减法实现两个正整数的乘除运算
- MongoDB分片中片键的选择
- JSP/Servlet基础语法
- Java习惯用法总结
- gcc 与 glibc 的关系 glibc版本查看