`
wjm901215
  • 浏览: 149111 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

failed due to the following error: 80070005解决办法. (转)

阅读更多
最近公司要求编写一个ASP.NET页面下的导出Excel功能, 代码写完之后,在调试的时候可以完好运行,然而正式发布到WIN2003服务器上的时候,却出现了问题.

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

中文翻译为:检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80070005

在网络上查找了许多资料,原来是对于用户来说,对服务器上的文件的操作权限不够所引起的错误,要配置DCOM.

具体配置方法如下:

1:在服务器上安装office的Excel软件.

2:在"开始"->"运行"中输入dcomcnfg.exe启动"组件服务"

如果是2000 server 则 在弹出的窗口中选中 Microsoft Excel 应用程序 ,点击属性,然后依次点中自定义配置->添加->显示用户->aspnet ,注意最后一项选中完全控制即完成设置.

3:依次双击"组件服务"->"计算机"->"我的电脑"->"DCOM配置"

4:在"DCOM配置"中找到"Microsoft Excel 应用程序",在它上面点击右键,然后点击"属性",弹出"Microsoft Excel 应用程序属性"对话框

5:点击"标识"标签,选择"交互式用户"

6:点击"安全"标签,在"启动和激活权限"上点击"自定义",然后点击对应的"编辑"按钮,在弹出的"安全性"对话框中填加一个"NETWORK SERVICE"用户(注意要选择本计算机名),并给它赋予"本地启动"和"本地激活"权限.

7:依然是"安全"标签,在"访问权限"上点击"自定义",然后点击"编辑",在弹出的"安全性"对话框中也填加一个"NETWORK SERVICE"用户,然后赋予"本地访问"权限.

这样,我们便配置好了相应的Excel的DCOM权限.

分享到:
评论

相关推荐

    Office 2003 组件owc11

    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 ...

    2008 安装 sqldmo.dll

    Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80070005. 后经过一段时间的检查,我们发现C:\Program Files\文件夹仅有...

    .NET中操作word的Microsoft.Office.Interop.Word常见错误解决

    主要用于解决在使用office的dll操作后台word文件时候,在本机运行可以,但是在IIS服务器上会报一个 Retrieving the COM class factory fro component with CLSID {000209FF-0000-C000-000000000046} failed due to ...

    sql server sqldmo_x86_x64(C#数据库备份还原很好用的dll)

    Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80070005.后经过一段时间的检查,我们发现C:\Program Files\文件夹仅有...

    office修复vba软件

    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_...

    计算机网络第六版答案

    but the time when loss first occurs will be different from one experiment to the next due to the randomness in the emission process. 22. Five generic tasks are error control, flow control, ...

    SQL Server 2008 安装SQLDMO.dll的方法

    Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154. 而客户又不想在这台电脑安装MSSQL,所以我们只需要在没有安装...

    p7331323_10204_AIX5L

    Applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.4 to 11.1.0.6 ...NOTE:419871.1 - Failures due to "skgxpvfymmtu: process failed because of a resource problem in the OS" on 32-bit Linux

    VS2005 水晶报表在时部署时遇到的问题

    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 ...

    BURNINTEST--硬件检测工具

    - Minor changes to the No operation error watchdog timer for the CD and Hard disk tests. - Minor correction to the Butterfly seek test. - Video playback trace logging increased. Release 5.3 build ...

    微软内部资料-SQL性能优化3

    For an example of how to decode value from this column using the information above, let us assume we have the following value: 0x000705001F83D775010002014F0BEC4E With byte swapping within each ...

    AVG 破解版

    5. If the Licensee, after failed subsequent performance, chooses to cancel the contract, he shall not be entitled to additional claims for damages due to the defect. If the Licensee, after failed ...

    S7A驱动720版本

    - The string write from the OPC Server sometimes failed . This bug has been fixed - After driver uninstall, not all of the S7A-related registry entries were deleted. Now the registry will be ...

    端口查看工具

    o Fixed bug: CurrPorts failed to display the current Auto Refresh status in Menu. * Version 1.40: o Added support for IPv6. * Version 1.37: o Fixed bug: CurrPorts failed to display process ...

    Senfore_DragDrop_v4.1

    For some strange reason the components causes a link error. * There appear to be sporadic problems compiling with C++ Builder 5. Several user have reported that they occasionally get one or more of...

    php.ini-development

    emitting less packets due to buffered output versus PHP streaming the output ; as it gets it. On production servers, 4096 bytes is a good setting for performance ; reasons. ; Note: Output buffering ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    In earlier revisions, the error status light was cleared after a VsSetWavelength() call failed, so the user did not see the light turn red to alert that an error had occurred. This has been fixed in ...

    OutlookAttachView v2.73

    displays informative error message about the problem. * Version 2.10 o Changed the user interface of the Main Scan Options window, to make it useable for lower screen resolutions and to give more ...

    SetupFactory(Dot net4.0脚本) .net4 脚本

    local strRequirementString = [[.NET 4 cannot be installed due to the following requirements:]]; local strRuntimeSupportFolder = SessionVar.Expand("%TempLaunchFolder%\\dotnet4"); local ...

    acpi控制笔记本风扇转速

    error. AcpiExec: Implemented full region support for multiple address spaces. SpaceId is now part of the REGION object. BZ 429 ---------------------------------------- 11 October 2006. Summary of ...

Global site tag (gtag.js) - Google Analytics