Windows-Server-2019

IIS 重新配置後載入 WSUS 控制台時出錯

  • May 11, 2022

在將一些組織要求的重新配置部署到支持 WSUS 的 IIS 伺服器後,我在載入 WSUS 控制台時遇到了錯誤。由於我自己找到了解決方案並且沒有在網上其他任何地方看到這個,我認為在這裡記錄它可能會幫助其他人。

我的環境是在虛擬機中執行的 Windows Server 2019,僅託管預設 WSUS 安裝提供的內容。

部署 IIS 重新配置後,WSUS 控制台失敗並顯示如下錯誤:

WSUS 管理控制台無法通過遠端 API 連接到 WSUS 伺服器。驗證更新服務服務、IIS 和 SQL 是否正在伺服器上執行。如果問題仍然存在,請嘗試重新啟動 IIS、SQL 和更新服務服務。WSUS 管理控制台遇到意外錯誤。這可能是暫時性錯誤;嘗試重新啟動管理控制台。如果此錯誤仍然存在,請嘗試通過刪除 %appdata%\Microsoft\MMC 下的 wsus 文件來刪除控制台的持久首選項。System.IO.IOException - 由於意外的數據包格式,握手失敗。源系統堆棧跟踪:在 System.Net.Security.SslState.StartReadFrame(Byte

$$ $$緩衝區,Int32 readBytes,AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.StartReceiveBlob(Byte$$ $$緩衝區,AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte$$ $$緩衝區,AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResultlazyResult) 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback 回調,對象狀態,布爾值 preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult 結果) 在 System.Net.TlsStream.Write(字節$$ $$緩衝區,Int32 偏移量,Int32 大小)在 System.Net.PooledStream.Write(字節$$ $$緩衝區,Int32 偏移量,Int32 大小)在 System.Net.ConnectStream.WriteHeaders(Boolean async) ** 此異常嵌套在以下異常中 ** System.Net.WebException – 底層連接已關閉:發生意外錯誤在發送。源 Microsoft.UpdateServices.Administration 堆棧跟踪:在 Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object$$ $$args) 在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.ConnectToServer() 在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.get_ServerTools 在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.GetUpdateServer(PersistedServerSettings 設置) () 這在網上的多個地方都得到了解決,但是我發現沒有一個解決方案有效。該錯誤似乎與 SSL 配置有關,但在我的情況下,這是一個紅鯡魚。遵循線上建議後,包括刪除 %appdata%\Microsoft\MMC 中的 WSUS 文件。System.IO.IOException 如錯誤所示,我無法連接控制台。

在我的具體情況下,這與我在 IIS 內的 WSUS 管理網站上禁止“未列出的文件副檔名”的要求有關。 您可以通過打開 IIS 控制台,點擊“WSUS 管理”站點,點擊站點的 IIS 設置組中的“請求過濾”圖示,然後點擊該請求過濾菜單右側的“編輯功能設置”來設置此設置。

再次選中“允許未列出的文件副檔名”複選框後,我就可以讓網站正常工作了。如果其他人遇到類似問題,我將在此處記錄這一點。

引用自:https://serverfault.com/questions/1100703