COM异常:由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154未注册类(HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG)). [英] COM Exception: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

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

问题描述

我正在使用sharepoint 2013.

Hi I am using sharepoint 2013.

我的任务就像用户将Word文档上载到文档库一样,因此使用列表中的动作",我创建了一个列表事件接收器,当他单击三个点时,就会出现一个将特定项目文档转换为HTML的选项.

My task i s like users will upload word document into document library so using the Actions in the list I created a list event receiver that when even he clicks the three dots there will comes and option to convert the particular item document to HTML.

为此,我在调试时使用了带有Microsoft.Office.Interop.Word的名称空间服务器端编码,但出现了问题:

For that I have use server side coding with namespace using Microsoft.Office.Interop.Word while debugging I am getting the problem:

检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂由于以下错误而失败:80040154未注册类(HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG)) .

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

恰好在此行之后,出现上述错误.

WordApp = new Microsoft.Office.Interop.Word.Application();

请让我知道解决此问题的想法和建议

Please let me know the ideas and your suggestions to solve this

致谢

记住过去的挑战未来"

Remember Past Challenge Future"

推荐答案

您是否已在SharePoint服务器中安装Office?

https ://social.msdn.microsoft.com/Forums/vstudio/zh-CN/95157f5d-c47a-4bf1-b1d9-0da3a52faf10/the-namespace-microsoftofficeinteropinterword?forum = csharpgeneral

如果您无法在服务器中安装Office,请尝试使用OpenXML.

https://forums.asp .net/t/2042367.aspx?how + to + convert + a + doc + file + into + html + string +

https://msdn.microsoft.com/zh-CN/library/office/ff628051%28v=office.14%29.aspx?f=255&MSPPError=-2147217396

最好的问候,


这篇关于COM异常:由于以下错误,检索具有CLSID {000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154未注册类(HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG)).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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