適用先
SharePoint Server 2016 SharePoint Server 2019 SharePoint Foundation 2013 SP1

現象

WPProperty に依存する Web パーツが正しく動作しなくなり、SharePoint Unified Logging System (ULS) ログに a7wm1 イベント タグが生成される可能性があります。

原因

この問題は、web.config ファイルの WPProperty にアクセスできる .NET 型を宣言するために、SharePoint Server がファームを必要とするために発生します。 一覧に記載されていない .NET 型は、セキュリティ上の予防措置として WPProperty にアクセスできません。

解決方法

この問題を解決するには、次のいずれかの更新プログラムをインストールします。

Web パーツを正しく機能させるには、次の手順を実行して、影響を受ける .NET 型が web.config ファイルの WPProperty にアクセスできると宣言します。

重要: 安全であると確認した後でのみ、.NET 型は WPProperty にアクセスできます。

  1. SharePoint ファームの各サーバー上で、Web アプリケーションの web.config ファイルを開きます。

  2. configuration/SharePoint/SafeMode セクションを検索します。

  3. AllowedWPProperties セクションが既に存在しない場合は追加します。

  4. 新しい 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>

  5. 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 つの更新プログラムが追加されました。

ヘルプを表示

その他のオプションが必要ですか?

サブスクリプションの特典の参照、トレーニング コースの閲覧、デバイスのセキュリティ保護方法などについて説明します。