SharePoint Log分析 —— HRESULT: 0x8007007E

        今天遇到了这样一个严重的log信息:The Execute method of job definition "SPSolutionDeploymentJobDefinition" (id "xxx") threw an exception. The specified module could not be found. (Exception from HRESULT: 0x8007007E),现象是在deploy solution的时候,会有“file not found” 错误信息,在retract solution的时候,直接显示error。

        另外同时log中还有一个错误:LogWMIData: ConnectServer failed: 0x8007007e, 错误的代码都是0x8007007E,这两个应该是有关联的。在网上查了一下原因,发现是一个比较严重的错误:一个windows的组件WMI出问题了。这个时候运行SharePoint Configuration Wizard也是报一样的错误。微软有一个工具可以验证一下这个问题:

在server上,打开命令行工具 ,输入“wbemtest.exe”,会弹出一个界面,点击"Connect" 按钮:

SharePoint Log分析 —— HRESULT: 0x8007007E_第1张图片

然后出现如下界面,保持默认值,再次点击“Connect”按钮:

SharePoint Log分析 —— HRESULT: 0x8007007E_第2张图片

此时如果没有错误信息出现,就应该是正常的了,如果有错误信息,可能需要重新修复一下WMI组件,以下是修复步骤:

1. 停止Windows Management Instrumentation 服务.
2. 使用管理员运行cmd.
3. 运行 cd %windir%\system32\wbem.
4. 运行 for /f %s in ('dir /b *.dll') do regsvr32 /s %s 来注册 WMI DLL 文件.
5. 运行 for /f %s in ('dir /b *.mof') do mofcomp %s 重新编译 re-compile WMI mof 文件.
6. 运行 wmiprvse /regserver 注册服务.
7. 启动Windows Management Instrumentation 服务.

如果以上步骤还是没有解决问题,那就比较麻烦了,可能需要repair windows。

参考资料:点击打开链接



你可能感兴趣的:(SharePoint,wmi,0x8007007e)