安装依赖于WMI的应用程序 [英] installing application that depends on WMI

查看:128
本文介绍了安装依赖于WMI的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我刚刚开发了一个使用system.manament类的应用程序,但是我的朋友在使用该应用程序时遇到了问题,因为它给出了错误.和我一样,他已经安装了winxp sp3和.Net framework 2.0.

< pre> System.TypeInitializationException:
的类型初始值设定项 "System.Management.MTAHelper"引发了异常. ---> System.Runtime.InteropServices.COMException(0x80040154):由于以下错误,检索具有CLSID {A8F03BE3-EDB7-4972-821F-AF6F8EA34884}的组件的COM类工厂失败:80040154.位于System.Management.MTAHelper..cctor( )</pre>

我如何部署此应用程序以确保存在wmi?

Hello,

i have just developed an app that uses system.manament class, but my friend is having problem using the app as it gives errors. He has winxp sp3 and .Net framework 2.0 installed, just as i have.

<pre>System.TypeInitializationException: The type initializer for
''System.Management.MTAHelper'' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {A8F03BE3-EDB7-4972-821F-AF6F8EA34884} failed due to the following error: 80040154. at System.Management.MTAHelper..cctor()</pre>

how can i deploy this application making sure wmi is present?
what could be the problem?

推荐答案

在XP机器上安装SP3后,报告了与WMI相关的问题.

http://social.technet.microsoft.com /Forums/zh-CN/itproxpsp/thread/7c00d810-0ecd-48b9-862e-69efa29beace/ [
There are issues reported related to WMI after installing SP3 on XP machines.

http://social.technet.microsoft.com/Forums/en-US/itproxpsp/thread/7c00d810-0ecd-48b9-862e-69efa29beace/[^]

You may want to revert and use SP2 or use WIN 7 as still no definite solution available yet.


这篇关于安装依赖于WMI的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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