Article ID: 327587 - Last Review: September 27, 2005 - Revision: 1.4

PRB: "Failed to Get Cryptographic Context" Error Message When You Use the Commerce Server 2002 CryptoAPI

This article was previously published under Q327587
Expand all | Collapse all

SYMPTOMS

Commerce Server 2002 supports asymmetric encryption and one-way hashing to permit you to encrypt profile properties. When you use this encryption (by using the CryptoAPI), depending on your configuration, you may receive the following error message when you try to gain access to the profile system:
Failed to get Cryptographic context.

CAUSE

This problem occurs because the ASPNET account does not have the correct permissions to gain access to the MachineKeys folder.

RESOLUTION

To avoid this problem, change the permissions on the C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys folder. Give the ASPNET user the following permissions on this folder, subfolder, and files:
  • List Folder / Read Data
  • Read Extended Attributes
  • Create Files / Write Data
  • Create Folders / Append Data
  • Write Attributes
  • Write Extended Attributes
  • Read Permissions
To change these permissions, right-click the folder, and then click Properties. On the Security tab, click Advanced.

MORE INFORMATION

If the ASPNET account has been replaced by a new local account or a domain account, you must give change the permissions for this new account on the MachineKeys folder.

APPLIES TO
  • Microsoft Commerce Server 2002 Standard Edition
Keywords: 
kbhotfixserver kbqfe kberrmsg kbfix kbnofix kbpending kbprb KB327587
 

Article Translations

 

Related Support Centers