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

IIS 應用程式池致命錯誤 (事件 ID 1011):system32 目錄權限缺失導致

編輯:關於伺服器

錯誤現象

網站突然無法連線資料庫,事件檢視器記錄:

事件來源: W3SVC
事件 ID: 1011
描述: 為應用程式池 'AppPool-BBS' 提供服務的進程在與 World Wide Web Publishing 服務通信時遇到致命錯誤。進程 ID '2052'。
Data: 0000: 6d 00 07 80  (錯誤碼 0x8007006D = ERROR_BAD_EXE_FORMAT? 實為權限問題)

根因排查

經排查,同事誤刪除了 C:\Windows\System32 目錄上 Users 群組 的讀取/執行權限,導致應用程式池身分識別 (通常為 Network Service 或 ApplicationPoolIdentity) 無法載入必要系統 DLL。

解決方案

  1. 以管理員身分開啟 C:\Windows\System32 屬性 → 「安全性」頁籤。
  2. 點選「編輯」→「新增」→ 輸入 Users → 確定。
  3. 授予 讀取與執行、列出資料夾內容、讀取 權限。
  4. 確定套用,重啟 IIS (iisreset) 或回收應用程式池。

預防建議

  • 嚴禁手動修改 System32、SysWOW64 等系統目錄 ACL。
  • 應用程式池身分識別建議使用 ApplicationPoolIdentity (預設),避免使用低權限自訂帳號。
  • 定期備份系統狀態,便於權限損壞時快速還原。
Copyright © Windows教程網 All Rights Reserved