「System.Runtime.InteropServices.COMException (0x80070422): 沒法啓動服務」解決方法

應用程序中發生了沒法處理的異常。若是單擊「退出」,應用程序將當即關閉。
沒法啓動服務,緣由多是已被禁用或其相關聯設備沒有啓動。(異常來自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

 

解決方法:系統服務裏啓動該服務 Windows Management Instrumentationspa

相關文章
相關標籤/搜索