“System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务”解决方法

时间:2023-12-09 13:23:07

应用程序中发生了无法处理的异常。如果单击“退出”,应用程序将立即关闭。
无法启动服务,原因可能是已被禁用或其相关联设备没有启动。(异常来自HRESULT:0X80070422)。
点击详细内容:
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
**************
异常文本 **************
System.Runtime.InteropServices.COMException (0x80070422):
无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。 (异常来自 HRESULT:0x80070422)
   在
System.Management.ThreadDispatch.Start()
   在
System.Management.ManagementScope.Initialize()
   在
System.Management.ManagementObjectSearcher.Initialize()
   在
System.Management.ManagementObjectSearcher.Get()
   在
TS3_Update.SystemInfo.DetectSys()
   在
TS3_Update.frmMain.GetRegistryStr()
   在
TS3_Update.frmMain.frmMain_Load(Object sender, EventArgs e)
   在
System.Windows.Forms.Form.OnLoad(EventArgs e)
   在
System.Windows.Forms.Form.OnCreateControl()
   在
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在
System.Windows.Forms.Control.CreateControl()
   在
System.Windows.Forms.Control.WmShowWindow(Message& m)
   在
System.Windows.Forms.Control.WndProc(Message& m)
   在
System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在
System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在
System.Windows.Forms.Form.WmShowWindow(Message& m)
   在
System.Windows.Forms.Form.WndProc(Message& m)
   在
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 
 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 
 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

************** 已加载的程序集
**************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4984
(win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TS3_Update
 
  程序集版本: 1.66.2.24
    Win32 版本: 1.66.2.24
    基本代码: file:///F:/gameback/模拟人生3安装/TS3_1.66.2.0240xx_update/TS3_1.66.2.0240xx_update.exe
----------------------------------------
System.Windows.Forms
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4986 (win7RTMGDR.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
mscorlib.resources
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4984 (win7RTMGDR.050727-4900)
   
基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Data
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Windows.Forms.resources
 
  程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
   
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
**************
JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的
system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:

<configuration>
    <system.windows.forms jitDebugging="true"
/>
</configuration>
启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT
调试器,
而不是由此对话框处理。

点击继续后,出现安装界面。手动选择安装目录,点击安装,提示:更新补丁发生错误!请尝试以管理员权限运行补丁程序!

解决方法:系统服务里启动该服务 Windows Management Instrumentation