部署到服务器后,导出Excel发生错误Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C00
来源:互联网 发布:java开发erp系统难不难 编辑:程序博客网 时间:2024/06/05 15:02
Excel导出程序,在本地运行正常。部署到服务器后运行发生如下错误:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
------------------------------------------------------------------------------------------------------------------------
服务器是windows 2008 64位的操作系统。解决方法如下:
dcomcnfg打开组件服务(64位操作系统为运行comexp.msc -32)
组件服务—》计算机—》我的电脑—》DCOM配置—》Microsoft Excel Appliction
右键属性—》安全—》添加设置用户
注意,在启动和激活权限中,要同时勾选本地启动和本地激活的选项
------------------------------------------------------------------------------------------------------------------------
注意,如此设置完成之后,在操作Excel时可能会报内存或磁盘空间不足的错误,需要按如下方法进行解决:
右键属性—》标识—》改为交互式用户
- 部署到服务器后,导出Excel发生错误Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C00
- Excel上传服务器后拒绝访问异常,Retrieving the COM class factory for component with CLSID ...
- IIS Excel操作问题解决 Retrieving the COM class factory for component with CLSID {00024500-0000-000
- ASP.NET在导出EXCEL时出现的错误Retrieving the COM class factory for component with CLSID
- 异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046}
- 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 .
- Retrieving the COM class factory for component with CLSID {00024500-0000-000
- 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
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID
- ASP.NET操作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:
- [TFS]于TFS强制签入已被签出的文档
- Xamarin.Android关于Fragment(一)
- PHP empty isset is_null区别比较
- iOS 静态库.a文件的制作
- iOS 把数组里的所有数据取出到一个字符串中
- 部署到服务器后,导出Excel发生错误Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C00
- 理解矩阵
- Objective-C的Runtime
- NET AJAX实例
- (总结)Nginx配置文件nginx.conf中文详解
- awr创建基线生成对比报告
- time wait bucket table overflow解决办法
- oracle OCP 11g 052 答案目录
- shiro+springmvc+mybatis