Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

IIS w3wp.exe 應用程式錯誤:註冊表機碼授權 iis_wpg 讀取權限修復

編輯:關於伺服器

IIS Worker Process (w3wp.exe) 崩潰,事件檢視器記錄:

錯誤應用程式 w3wp.exe,版本 6.0.3790.3959,錯誤模組 unknown,版本 0.0.0.0,錯誤位址 0x022ac15b。

經排查為 **.NET Framework 2.0 修補補丁註冊表機碼** 缺少 IIS_WPG 群組讀取權限導致。

修復步驟

  1. 開啟 regedit。
  2. 定位機碼:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\AppPatch\v2.0.50727.00000
  3. 右鍵 →「權限」→「新增」→ 輸入 IIS_WPG (IIS 6.0) 或 IIS_IUSRS (IIS 7+) → 勾選 讀取 → 確定。
  4. 若為 64 位元系統,同步授權 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\policy\AppPatch\v2.0.50727.00000。
  5. 重啟 IIS:iisreset。

根因分析

  • .NET 2.0 SP1/SP2 修補程式安裝時建立 AppPatch 政策機碼,預設僅授權 Administrators/SYSTEM。
  • w3wp.exe 以 IIS_WPG 身分載入政策組件,讀取失敗導致進程啟動/回收時崩潰。
  • 授權讀取權限後,Worker Process 可正常載入修補政策,錯誤消失。

驗證

回收應用程式集區,觀察事件檢視器不再出現 w3wp.exe 應用程式錯誤,網站正常響應。

此問題常見於 Windows Server 2003 + .NET 2.0 修補後環境,補充機碼權限即可永久修復。

Copyright © Windows教程網 All Rights Reserved