Sitecore - System.Security.Cryptography.CryptographicException

Jes*_*e K 4 asp.net sitecore sitecore6

嗨,谢谢你的帮助.我们正试图在WS 2008 R2 Standard服务器上保持Sitecore站点的运行,但仍然遇到以下异常:

System.Security.Cryptography.CryptographicException

该站点设置为在其自己的App Pool中运行,并选择了2.0框架版本并集成了管道模式.

该网站将运行正常几分钟,但随后应用程序池将停止并显示以下详细信息:

"应用程序池'######’被自动由于在服务于该应用程序池的过程(ES)一系列故障而被停用."

检查应用程序日志显示以下内容:

发生未处理的异常,并终止该过程.

应用ID:/ LM/W3SVC/4/ROOT

进程ID:5156

例外:System.Security.Cryptography.CryptographicException

消息:系统找不到指定的路径.

堆栈跟踪:在System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(的Int32小时)在System.Security.Cryptography.SafeKeyHandle._FreeHKey(IntPtr的pKeyCtx)在System.Security.Cryptography.SafeKeyHandle.ReleaseHandle()在System.Runtime.InteropServices.SafeHandle .InternalFinalize()在System.Runtime.InteropServices.SafeHandle.Dispose(布尔处置)在System.Runtime.InteropServices.SafeHandle.Finalize()

在一个网站上的尖端,我发现说,以确保该网站正在运行的帐户是我做的加密操作员组的成员.可悲的是,该网站继续失败.

任何帮助,将不胜感激.谢谢!

编辑

在我实现了下面的第一个答案之后,我再次查看服务器应用程序日志,看起来每次应用程序池出现故障时,首先发生以下警告:

Windows检测到您的注册表文件仍在被其他应用程序或服务使用.该文件现在将被卸载.保存注册表文件的应用程序或服务可能在以后无法正常运行.

事件1530,用户配置文件服务详细信息 - 从\ Registry\User\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965泄露的2个用户注册表句柄:进程3260(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965进程3260(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Policies\Microsoft\SystemCertificates

另一个例子:

Windows检测到您的注册表文件仍在被其他应用程序或服务使用.该文件现在将被卸载.保存注册表文件的应用程序或服务可能在以后无法正常运行.

详细信息 - 从\ Registry\User\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965泄露的13个用户注册表句柄:进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开键\ REGISTRY\USER\S-1-5-82 -3231641130-1035467585-39029555-2466166849-1382764965进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\TrustedPeople Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\trust进程5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\Windows NT\CurrentVersion Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Policies\Microsoft\SystemCertificates Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp .exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\Root Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\SmartCardRoot Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\W3WP.exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\My Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp .exe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\CA Process 5228(\ Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开密钥\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\Disallowedexe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\Disallowedexe)已打开键\ REGISTRY\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\Disallowed

Mar*_*ino 6

这可能会有所帮助:在Windows 7的IIS上运行Sitecore 6.

它基本上是说在你的添加global.asax:

public void Application_Start() {
  System.Security.Cryptography.RSACryptoServiceProvider.UseMachineKeyStore = true;
  System.Security.Cryptography.DSACryptoServiceProvider.UseMachineKeyStore = true;
}
Run Code Online (Sandbox Code Playgroud)