WMI的类错误无效 [英] invalid class error for WMI

查看:89
本文介绍了WMI的类错误无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我当时在使用WMI管理类,我写了很多代码在远程计算机上安装服务,在远程计算机上获取正在运行的服务,远程计算机信息等.

该代码对我来说很好用.但是突然它停止在我的机器上工作,但仍然可以在其他机器上正常工作.
当我在本地计算机上运行代码时.它将引发INVALID CLASS Error,内部异常为null.
错误代码为[0x80010105].

现在结果是没有使用WMI的软件可以在我的计算机上像sql server一样工作.

我尝试浏览以查找错误并获得此链接的帮助:http://networkadminkb.com/kb/Knowledge%20Base/Windows2003/WMI%20''Invalid%20Class''%20Error%20caused%20by%20missing%20files.aspx

但是Msi.mof,Msiprov.dll文件存在于我的光盘上.我现在很困惑该怎么办.
我正在使用Windows 7 x64 OS.

代码没有问题,因为它仍然适用于远程计算机,但不适用于我的本地计算机.

任何帮助将不胜感激.

谢谢

Hi All,

I was working with WMI Management Class, I wrote lots of code for installing services on remote machine, fetching running services on remote machine, remote machine information etc.

The code was working fine for me. But suddenly it stopped working on my machine but still it work fine on other machines.
When I run code on my local machine. It will throw INVALID CLASS Error with inner exception is null.
error code is [0x80010105].

Now result is no software using WMI works on my machine like sql server.

I try to browse for error and got this link helpful: http://networkadminkb.com/kb/Knowledge%20Base/Windows2003/WMI%20''Invalid%20Class''%20Error%20caused%20by%20missing%20files.aspx

but Msi.mof, Msiprov.dll files are present on my disc. I am confused now what to do.
I am using windows 7 x64 OS.

There is no issue with code because still it is working for remote machines but not for my local machine.

Any help will be appreciated.

Thanks

推荐答案

听起来好像是仓库被搞砸了.

查看什么此工具 [ [
It sounds as if the repository is screwed up.

See what this tool[^] says about it first. You just have to run it from a command prompt, CSCRIPT WMIDIAG.VBS. At the end of the script, it''ll tell you where it put the log files to examine.

Then you might have a look at this[^] if the above doesn''t help.


这篇关于WMI的类错误无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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