Sitecore - System.Security.Cryptography.CryptographicException

Hi, thank you for your help. We are trying to save the Sitecore site on the WS 2008 R2 Standard server, but continue to work with the following exception:

System.Security.Cryptography.CryptographicException

The site is configured to run in its own application pool with map 2.0 the selected option and integrated pipeline mode.

The site will work fine for several minutes, but then the application pool ends and stops with the following details:

'Application pool ######' is automatically disabled due to a series of failures in the process (s) serving this application pool.

Checking the application log shows the following:

An unhandled exception occurred and the process was aborted.

Application ID: / LM / W3SVC / 4 / ROOT

Process ID: 5156

Exception: System.Security.Cryptography.CryptographicException

Message: the system cannot find the path specified.

StackTrace: at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException (Int32 hr) in System.Security.Cryptography.SafeKeyHandle._FreeHKey (IntPtr pKeyCtx) in System.Security.Cryptography.SafeKeyHandle.ReleaseHandleSeroper.Seroper.Seroper.eroper.oper.eroper.eroper.eroper.er .InternalFinalize () at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) in System.Runtime.InteropServices.SafeHandle.Finalize ()

The advice on one site that I found said to make sure that the account on which the site is running is a member of the cryptographic operator group that I made. Unfortunately, the site continued to fail.

Any help would be greatly appreciated. Thanks!

EDIT

After I completed the first answer below, I looked again at the server application logs, and it looks like every time the application pool goes down, the following warning occurs first:

Windows has detected that your registry file is still in use by other applications or services. Now the file will be uploaded. Applications or services that contain the registry file may not work correctly after that.

Event 1530, DETAIL User Profile Service - 2 user registry descriptors leaked from \ Registry \ User \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965: Process 3260 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 process 3260 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Policies \ Microsoft \ SystemCertificates

And another example:

Windows has detected that your registry file is still in use by other applications or services. Now the file will be uploaded. Applications or services that contain the registry file may not work correctly after that.

DETAILS - 13 user registry entries leaked from \ Registry \ User \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965: Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S- 1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130- 1035467585-39029555-2466166849-1382764965 Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) open there was a key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ TrustedPeople Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ trust process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ Windows NT \ CurrentVersion 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Policies \ Microsoft \ SystemCertificates Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ S oftware \ Microsoft \ SystemCertificates \ Root Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ SmartCardRoot Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ My Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ CA Process 5228 (\ Device \ HarddiskVolume3 \ Windows \ System32 \ inetsrv \ w3wp.exe) opened the key \ REGISTRY \ USER \ S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 \ Software \ Microsoft \ SystemCertificates \ Disallowed

+4
source share
2 answers

This may help: Launch Sitecore 6 on IIS Windows 7.

It is mainly said to add this to your global.asax :

 public void Application_Start() { System.Security.Cryptography.RSACryptoServiceProvider.UseMachineKeyStore = true; System.Security.Cryptography.DSACryptoServiceProvider.UseMachineKeyStore = true; } 
+6
source

Setting up the application pool in the 4.0 Framework fixed the problem.

0
source

Source: https://habr.com/ru/post/922712/


All Articles