Throw Cryptographic Exception using the CM

Throw Cryptographic Exception using the CM


Problem:


System.Security.Cryptography.CryptographicException: Access is denied. at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv) at System.Security.Cryptography.Utils.AcquireProvHandle(CspParameters parameters) at System.Security.Cryptography.CryptoAPITransform..ctor(Int32 algid, Int32 cArgs, Int32[] rgArgIds, Object[] rgArgValues, Byte[] rgbKey, PaddingMode padding, CipherMode cipherChainingMode, Int32 blockSize, Int32 feedbackSize, Boolean useSalt, CryptoAPITransformMode encDecMode) at System.Security.Cryptography.DESCryptoServiceProvider._NewEncryptor(Byte[] rgbKey, CipherMode mode, Byte[] rgbIV, Int32 feedbackSize, CryptoAPITransformMode encryptMode) at System.Security.Cryptography.DESCryptoServiceProvider.CreateDecryptor(Byte[] rgbKey, Byte[] rgbIV) at A.c71bf50ce18f4d68a60a8733c6563e1f7.cb7b6870b5e9f986fd298a22bd1e0c119(Stream c4fc144392daa42b762a1e3a8435415be) at A.c7e6b22192f0a0e8c8fd8780e1983f4b5..cctor()

 

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

If your application is using impersonation or using the IUSR_MACHINENAME user, then configure the MachineKeys folder sercurities and give the user Read & Execute, List Folder Contents, Read, Write. If that doesn't work, try giving the Everyone user the same permissions.




    • Related Articles

    • Error on saving using CM Picture Field

      Problem: After saving the logo or screenshots in a template or workspace there is an issue in the ULS log: The File with the URL "...." does not exist in this webpage Solution: Try to open the CM Picture Library with "URLofYourRootWeb/CMPictures" If ...
    • Workspace creation Error occured - Exception Contentdb null

      Symptom When creating a Workspace you receive the following error in the ULS log and status is set to "Error occured": ULS Error: Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.CreateFromTemplateInternal: Contentdb null ...
    • CM Service Proxy not available

      Error Message: soap:ServerServer was unable to process request. ---> Unable to obtain object reference to Collaboration Manager service proxy.   Solution: Check if the Collaboration Manager Service is connected with the webapplication, where the CM ...
    • Workspace creation Error occured - Unauthorized Access Exception

      Symptom After creating a workspace the status column in the workspace list shows an Error Occurred. The log shows this or an similar error : Solutions2Share.Solutions.CollaborationManager.Services.Components.Workspace.CreateFromTemplateInternal: ...
    • Field type CM_PictureField is not installed

      Problem: After creating a new list item in the workspace list to create a new site the process runs in error occured. You get this error message in the uls log: ...