VB.NET错误(由于以下错误,检索CLSID为{00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80040154) [英] VB.NET Error (Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154)

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

问题描述

我有一个从FTP服务器下载文件的程序。我的第一个过程是从FTP下载 UPLOAD REPORTS(Excel应用程序),然后读取其数据。在我的计算机中它工作正常但当我试图将它运行到其他计算机时我遇到了错误:

I have a program that downloading files from FTP Server. My first process is download an UPLOAD REPORTS(Excel Application) from FTP then read its data. In my computer it works fine but when I was trying to run it to other computer I'm having an error:

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



我尝试将此错误搜索到互联网,我发现同样的错误,但他使用的是Word应用程序,也是这个(使用组件服务)

http://technoblogy.net/retrieving-the-com-class-factory-for-component-with-clsid -00024500-0000-0000-c000-000000000046-failed-due-to-the-following-error-80040154 / [ ^ ]。

我担心当我尝试这个解决方案时,这会给计算机带来问题,否则会导致我的程序出现另一个错误。

有没有人知道解决这个错误的其他方法。



请帮助我


谢谢


I try searching this error to internet and I found same error but he was using a Word Application, also this(Using Component Services)
http://technoblogy.net/retrieving-the-com-class-factory-for-component-with-clsid-00024500-0000-0000-c000-000000000046-failed-due-to-the-following-error-80040154/[^].
I'm afraid that when I try this solution that this will cause problem to there computer or it will cause another error to my program.
Is anybody know any other way to solve this error.

Please, help me

Thanks

推荐答案

hi,



应将Excel文件的支持文件放入您的应用程序目录。


Supporting file for Excel file should be placed in your application directory.


有两种解决方法



1.平台问题只需用编译代码即可X86'而不是'任何CPU'

来点击ProjectMenu - >窗体属性 - >构建标签 - >平台目标改为X86



---------------------------- ----------------------------



2.点击开始 - - >运行

类型 dcomcnfg 组件服务窗口将打开。

组件服务 - >电脑 - > MyComputer - > DCOM配置 - >选择微软EXCEL应用程序



右键单击它 - >属性 - >安全 - >午餐和激活许可TAB



选择自定义选项卡 - >点击编辑添加网络服务用户用户组授予权限。



对访问权限和配置执行相同操作权限。
There are two workarounds

1.it a platform issue just compile your code with 'X86' rather than 'Any CPU'
to do that click on ProjectMenu --> windows form properties --> Build tab --> platform target change it to X86

--------------------------------------------------------

2. click on Start --> Run
type dcomcnfg component services window will open.
component services --> computers --> MyComputer --> DCOM Config --> select microsoft EXCEL application

right click on it --> properties --> security --> Lunch and activation permission TAB

select customize TAB --> click on edit add Network Services user and Users group give permission.

do same for access permission and configuration permission.


exel not location in location / dcom config
exel not found in location/dcom config


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

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