Web.config 文件的 requestFiltering 元素的设置不正确 (SharePoint Server)

适用于:yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

规则名称: Web.config 文件具有的 requestFiltering 元素的设置不正确。

Summary: To support file names that contain the + character, the requestFiltering element in the Web.config file must have the allowDoubleEscaping attribute set to True and it must have a requestLimits element that has a maxAllowedContentLength value set to 2147483647 to avoid interfering with file upload.

Cause: The settings of the requestFiltering element in the Web.config file are incorrect.

解决方法:更改 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. 确认执行以下步骤的用户帐户是本地计算机(上一步标明的计算机)上的 Administrators 组的成员。

  4. 登录到发生此事件的服务器。

  5. “服务器管理器”上,单击“ 工具”,然后选择“ Internet Information Services (IIS) 管理器”。

  6. 在 Internet Information Services 管理控制台的"连接"窗格中,展开该服务器名称的树视图,展开"站点",然后单击要更改其 requestFiltering 设置的站点、。

  7. 在站点主页中切换至"'功能'视图",然后在"管理"部分双击"配置编辑器"。

  8. 在"部分"列表中,展开"system.webServer",再展开"安全性",然后单击"requestFiltering"。

  9. 在"配置编辑器"页上,确保以下属性或元素存在且配置正确:

  1. 在对这些设置进行更改后,在"操作"窗格中,单击"应用"。