Web.config 檔案中 requestFiltering 元素的設定不正確 (SharePoint Server)

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

規則名稱:Web.config 檔案中 requestFiltering 元素的設定不正確。

摘要:若要支援包含 + 字元的檔案名稱,Web.config 檔案中的 requestFiltering 元素必須將 allowDoubleEscaping 屬性設為 True,且 requestLimits 元素的 maxAllowedContentLength 值必須設為 2147483647 以避免干擾檔案上傳。

原因:Web.config 檔案中 requestFiltering 元素的設定不正確。

解決方案:變更 Internet Information Services (IIS) 中 Web.config 檔案的 requestFiltering 設定。

  1. 確認執行此程序的使用者帳戶是伺服器陣列管理員群組的成員。

  2. Identify the server on which this event occurs. On the SharePoint Central Administration website, in the Monitoring section, click Review problems and solutions, and then find the name of the server in the Failing Servers column. If there are multiple failing servers in a server farm, you must repeat the following steps on each failing server.

  3. 確認執行下列步驟的使用者帳戶是您在先前步驟中識別之本機電腦上系統管理員群組的成員。

  4. 登入發生此事件的伺服器。

  5. 在 [伺服器管理員] 中,按一下 [工具],然後選取 [Internet Information Services (IIS) 管理員]

  6. 在 Internet Information Services 管理主控台的 [連線] 窗格中,展開伺服器名稱的樹狀檢視、展開 [網站],然後按一下您要變更其 requestFiltering 設定的網站。

  7. 在網站首頁上,切換至 [功能檢視],然後在 [管理] 區段中,按兩下 [設定編輯器]

  8. 在 [區段] 清單中,展開 [system.webServer]、展開 [安全性],然後按一下 [requestFiltering]

  9. 在 [設定編輯器] 頁面上,確定下列屬性或元素已存在且已正確設定:

  1. 完成這些設定的變更之後,請在 [動作] 窗格中,按一下 [套用]