[質問・回答]オプションが有効になっている際に、メンバーシップ プロバイダーのパスワードのリセット機能が機能しない


説明

ユーザー マネージャー アプリケーションを使用して、「有効なパスワードのリセット」及び「質問と回答が必要」機能が有効になっているメンバーシップ プロバイダーに保存されているユーザー アカウントのパスワードをリセットする際に、次の未処理の例外が発生する場合があります。

ArgumentNullException: Value cannot be null. Parameter name: passwordAnswer

[質問・回答]オプションをサポートするメンバーシップ プロバイダーの例は、SqlMembershipProvider と ActiveDirectoryMembershipProvider です。

解決策

Sitecore.Support.334561.dll」ファイルを「/bin」フォルダーにコピーしてください。この dll ファイルには、ユーザーのパスワードをリセットする際に表示されるパスワードの[質問・回答]ダイアログが含まれています。

「/sitecore/shell/Applications/Security/SetPassword/SetPassword.xaml.xml」ファイルで、次の行を、以下のように変更します。

変更前:

<Sitecore.Shell.Applications.Security.SetPassword Application="Security/Edit User" x:inherits="Sitecore.Shell.Applications.Security.SetPassword.SetPasswordPage,Sitecore.Client">

変更後:

<Sitecore.Shell.Applications.Security.SetPassword Application="Security/Edit User" x:inherits="Sitecore.Support.Shell.Applications.Security.SetPassword.SetPasswordPage,Sitecore.Support.334561">