現象
WPProperty に依存する Web パーツが正しく動作しなくなり、SharePoint Unified Logging System (ULS) ログに a7wm1 イベント タグが生成される可能性があります。
原因
この問題は、web.config ファイルの WPProperty にアクセスできる .NET 型を宣言するために、SharePoint Server がファームを必要とするために発生します。 一覧に記載されていない .NET 型は、セキュリティ上の予防措置として WPProperty にアクセスできません。
解決方法
この問題を解決するには、次のいずれかの更新プログラムをインストールします。
-
SharePoint Server 2019 のセキュリティ更新プログラムについて: 2021 年 9 月 15 日 (KB5002018)
-
2021 年 6 月 9 日の SharePoint Enterprise Server 2016 のセキュリティ更新プログラムについて (KB5001946)
-
SharePoint Foundation 2013 のセキュリティ更新プログラムについて: 2021 年 9 月 15 日 (KB5002024)
Web パーツを正しく機能させるには、次の手順を実行して、影響を受ける .NET 型が web.config ファイルの WPProperty にアクセスできると宣言します。
重要: 安全であると確認した後でのみ、.NET 型は WPProperty にアクセスできます。
-
SharePoint ファームの各サーバー上で、Web アプリケーションの web.config ファイルを開きます。
-
configuration/SharePoint/SafeMode セクションを検索します。
-
AllowedWPProperties セクションが既に存在しない場合は追加します。
-
新しい AllowedWPProperty 要素を型および propertyName 属性と一緒に追加して、WPProperty へのアクセスを許可するべき型を表します。
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="15" TotalFileDependencies="250" AllowPageLevelTrace="false">
<AllowedWPProperties>
<AllowedWPProperty type="<allowedWPPropertyTypeName>,<allowedWPPropertyAssemblyName>, <AssemblyVersion>, <AssemblyLanguageSetting>, <AssemblyPublicKey>" propertyName="<Allow WPProperty property name>"/>
</AllowedWPProperties>
</SafeMode> -
web.config ファイルに対する変更を保存します。
型と propertyName 属性の正しい値を特定するには、a7wm1 イベント タグの ULS ログをクエリして、ログ エントリーを書き留めます。. 例:
"WPProperty has been blocked for security reason. blocked AssemblyQualifiedName is "<BlockedWPPropertyTypeName>, <allowedWPPropertyAssemblyName>, <AssemblyVersion>, <AssemblyLanguageSetting>, <AssemblyPublicKey>" | blocked property name is "<blocked WPProperty name>",
この型が WPProperty にアクセスできるようにするには、AllowedWPPProperty 型の属性をブロックされた AssemblyQualifiedName の値に設定し、propertyName 属性をブロックされたプロパティ名の値に設定します。
変更履歴
次の表は、このトピックに対する最も重要な変更の一部をまとめたものです。
日付 |
説明 |
---|---|
2021 年 9 月 15 日 |
「解決方法」セクションに 2 つの更新プログラムが追加されました。 |