症狀
在 Windows Server 2012 R2 安裝 SharePoint Server 2016 (KB 5002385 和 KB 5002370) 的 2023 年 4 月 11 日更新後,並透過 SharePoint 產品設定精靈或 Upgrade-SPFarm PowerShell 指令碼執行 SharePoint 升級操作後,可能會遇到以下問題:
「HTTP 錯誤 503。 瀏覽 SharePoint 網站時會發生「服務無法使用」錯誤。
Internet Information Services (IIS) SharePoint 使用的應用程式池無法啟動。 這影響所有 SharePoint 網頁應用程式,包括內容網頁應用程式、SharePoint 中央管理網頁應用程式以及 SharePoint 網頁服務網站。
在 Windows 事件日誌的應用程式日誌中,事件 ID 2280 會從 IIS-W3SVC-WP 來源記錄,描述如下:
注意
模組 DLL <%CommonProgramFiles%>\Microsoft Shared\Web Server Extensions\16\isapi\sprequestfilteringmodule.dll 載入失敗。 錯誤在於數據。
原因
2023 年 4 月 11 日的 SharePoint Server 2016 更新引入了 Windows 反惡意軟體掃描介面 (AMSI) 整合,以協助保護 SharePoint 端點免受潛在惡意網頁請求的侵害。 AMSI 整合會在 IIS 中透過升級動作註冊,該升級動作會在安裝 2023 年 4 月 11 日更新後執行以下任一操作時執行:
- SharePoint 產品設定精靈 (PSConfigUI.exe)
psconfig.exe -cmd upgrade -inplace b2bUpgrade-SPFarm
此問題是因為 AMSI 整合與 Windows Server 2012 R2 不相容。 因此,當 IIS 嘗試載入承載 AMSI 整合功能的 sprequestfilteringmodule DLL 時,會失敗。
解決方式
要解決此問題,請安裝 SharePoint Enterprise Server 2016: June 13 的安全更新說明 (KB5002404) 。