检索具有clsid的组件的com类工厂... [英] Retrieving the com class factory for component with clsid ...

查看:272
本文介绍了检索具有clsid的组件的com类工厂...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经使用VB.NET 2.0开发了一个exe,可以将Word文件转换为HTML.
它在Windows Server 2003上运行良好,但在Windows Server 2008上显示错误.
错误显示为

由于以下错误,检索到clsid失效的组件的com类工厂:800401154
我有使用X86平台目标选项重新编译exe的解决方案.

还有其他解决方案/设置可以解决该问题吗?这样我就不需要重新编译我的EXE

在此先感谢您.

Hi All,

I have developed an exe using VB.NET 2.0 which coverts Word file to HTML .
It runs good on windows server 2003 but gives an error on windows server 2008.
the error reads

Retrieving the com class factory for component with clsid faliled due to the following error: 800401154
i have got solution to recompile exe with X86 platform target option.

Is there any another solutions / setting to overcome the problem ? so that i do not need to recomplie my EXE

Thanks in Advance.

推荐答案

有两件事要看:

用户是否只是将.exe复制到新计算机上,然后他们说它不起作用?

用户是否使用您发布的安装程序安装了该应用程序?

我不得不问,因为我已经看到用户将可执行文件简单地复制到新计算机的位置,而不了解依赖文件是否需要在新计算机上加载和注册.安装程序将执行此操作.
A couple of things to look at:

Was the .exe simply copied over to the new machine by the user and they said it did not work?

Did the user install the application using your published installer?

I have to ask because I have seen where users will simply copy the executable over to a new machine not understanding that the dependency files need to be loaded and registered on the new machine. The installer will do this.


0x80040154错误表示类未注册".因此,您的代码正在使用的某个组件未安装在Server 20080框中.如果您使用的是Office Interop,则可能未在该包装盒上安装正确版本的Office?
The 0x80040154 error means "Class not registered". So, there''s a component that your code is using that isn''t installed on the Server 20080 box. Perhaps the correct version of Office isn''t installed on that box, if you''re using Office Interop?


我通过GOOOOLING找到了解决方案.
我只是从运行窗口运行以下命令

C:\ Windows \ system32 \ svchost.exe -k DcomLaunch

真的,它有效!!

我不了解其背后的原理.我需要阅读更多内容.
I found the solution by GOOOOLING.
I just run the following command from run window

C:\Windows\system32\svchost.exe -k DcomLaunch

Really, It WORKS !!!

I don''t know the theory behind this..i need to read more.


这篇关于检索具有clsid的组件的com类工厂...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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