ASP.NET C#错误:由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154。 [英] ASP.NET C# Error:Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.

查看:224
本文介绍了ASP.NET C#错误:由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人帮助我,我得到了如下错误



 服务器 错误 '/'应用程序中。 

检索 COM class factory for component with CLSID { 000209FF-0000-0000-C000-000000000046 } 失败 到期 错误: 80040154

描述: 未处理 例外 发生 < span class =code-leadattribute> 执行 当前 web 请求 review stack trace for 更多 信息 关于 错误 其中 it originated 代码

异常 详情: 系统运行时 InteropServices COMException: 检索 COM class factory for component with CLSID { 000209FF -0000-0000-C000-000000000046 } 失败 到期 to 关注 错误: 80040154

来源 错误:


13: public 部分 CS System Web UI Page
14 : {
15 protected Microsoft.Office.Interop.Word.ApplicationClass objWord = new ApplicationClass();
16 protected string strPathToUpload;
17 //上传文件的路径已上传

源文件:c:\inetpub \ www.root \ qhengineerszone.com \ CS.aspx.cs行:15

解决方案

您不能在Web应用程序或服务应用程序中使用Office Interop。

此错误表示服务器上未安装MS Word。请注意,Microsoft既不建议也不支持Office应用程序的服务器端自动化:服务器端的注意事项办公自动化 [ ^ ]。

Somebody help me i got error as below

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.

Source Error:


Line 13: public partial class CS : System.Web.UI.Page
Line 14: {
Line 15:     protected Microsoft.Office.Interop.Word.ApplicationClass objWord = new ApplicationClass();
Line 16:     protected string strPathToUpload;
Line 17:     //Path to upload files "Uploaded"

Source File: c:\inetpub\wwwroot\qhengineerszone.com\CS.aspx.cs    Line: 15

解决方案

You cannot use Office Interop in a either a web application or a service application.


This error means that MS Word is not installed on the server. Note that server-side automation of Office applications is neither recommended nor supported by Microsoft: Considerations for server-side Automation of Office [^].


这篇关于ASP.NET C#错误:由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆