CM throwing error "System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied."

CM throwing error "System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied."


CM throwing error "System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied."

If you're getting one of the following error messages in your application:

Message: Keyset does not exist

StackTrace:    
  
  at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
  at System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
  at System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
  at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
  at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
  at System.Runtime.InteropServices.SafeHandle.Finalize()

Message: Access is denied.


StackTrace:   

  at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
  at System.Security.Cryptography.Utils._CreateCSP(CspParameters param, Boolean randomKeyContainer, SafeProvHandle& hProv)
  at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
  at System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters)
  at System.Security.Cryptography.RSA.FromXmlString(String xmlString)


Solution:

The application might be trying to write to the following folder path: C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

The application is using impersonation, so the MachineKeys needs folder sercurities for the user with Read & Execute, List Folder Contents, Read, Write.  If that doesn't work, try giving the Everyone user the same permissions.



    • Related Articles

    • External Access

      External Access 1. If you want to have share your workspaces with external users go to your SharePoint Online Central Administration and press the settings hyperlink. 2. Select the maximum sharing level that you want for your workspaces. 3. Press ...
    • User Access - User and Group Permissions

      1. To use the Access Field a group in the template must be created first. Please navigate to a template where the access field should be activated. 2. Please navigate to the site settings 3. Press the hyperlink "People and groups" 4. Select "Groups" ...
    • Cannot create Workspaces (CM is installed on two Site Collections or more)

      Problem: When you create a workspace you are getting an Error. In the log there is an entry like "... invalid field name ..." Reason: You have installed the Collaboration Manager on two Site Collections or more. The settings for the CM are global, so ...
    • Creating a template results in an error status

      Creating a template results in an error status Problem: Creating a template leads to an error status in the templates library. Possible Reasons: The Administrator Account has not been created as described in our documentation Creating the template ...
    • Collaboration Manager 365 with Nintex Workflows

      Requirements Collaboration Manager 365 has to be licensed and added to your SharePoint A license for Nintex Workflows has to be purchased Nintex Workflow has to be added to your SharePoint Installation, licence and activation For the use of Nintex ...