Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net Sitecore-System.Security.Cryptography.Cryptography异常_Asp.net_Sitecore_Sitecore6 - Fatal编程技术网

Asp.net Sitecore-System.Security.Cryptography.Cryptography异常

Asp.net Sitecore-System.Security.Cryptography.Cryptography异常,asp.net,sitecore,sitecore6,Asp.net,Sitecore,Sitecore6,你好,谢谢你的帮助。我们试图使Sitecore站点在WS 2008 R2标准服务器上保持正常运行,但仍会遇到以下异常: System.Security.Cryptography.CryptographyException异常 该网站被设置为在自己的应用程序池中运行,使用2.0框架 版本选择和集成管道模式 该网站将正常运行几分钟,但随后应用程序池结束 正在使用以下详细信息停止: “应用程序池”#########”由于出现错误而被自动禁用 为该应用程序池提供服务的进程中的一系列故障。“ 检查应用程序

你好,谢谢你的帮助。我们试图使Sitecore站点在WS 2008 R2标准服务器上保持正常运行,但仍会遇到以下异常:

System.Security.Cryptography.CryptographyException异常

该网站被设置为在自己的应用程序池中运行,使用2.0框架 版本选择和集成管道模式

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

“应用程序池”#########”由于出现错误而被自动禁用 为该应用程序池提供服务的进程中的一系列故障。“

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

发生未处理的异常,进程终止

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

进程ID:5156

异常:System.Security.Cryptography.CryptographyException

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

StackTrace:在 System.Security.Cryptographics.CryptographicException.ThrowCryptogaphicException(Int32 hr)在系统、安全、加密、安全密钥句柄上 pKeyCtx)在 System.Security.Cryptography.SafeKeyHandle.ReleaseHandle()位于 位于的System.Runtime.InteropServices.SafeHandle.InternalFinalize() System.Runtime.InteropServices.SafeHandle.Dispose(布尔处理) 在System.Runtime.InteropServices.SafeHandle.Finalize()中

我在一个网站上找到的一条提示说,要确保该网站运行的帐户是我创建的加密操作员组的成员。遗憾的是,该网站继续失败

任何帮助都将不胜感激。谢谢大家!

编辑 在实现下面的第一个答案后,我再次查看了服务器应用程序日志,每次应用程序池崩溃时,都会首先出现以下警告:

Windows检测到其他用户仍在使用您的注册表文件 应用程序或服务。现在将卸载该文件。这个 保存注册表文件的应用程序或服务可能无法运行 之后适当地

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

还有一个例子:

Windows检测到其他用户仍在使用您的注册表文件 应用程序或服务。现在将卸载该文件。这个 保存注册表文件的应用程序或服务可能无法运行 之后适当地

详细信息-13个用户注册表句柄从中泄漏 \注册表\User\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965: 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-246616649-1382764965\Software\Microsoft\SystemCertificates\TrustedPeople 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\trust 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\Windows NT\CurrentVersion进程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Policys\Microsoft\SystemCertificates 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\Root 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-246616849-1382764965\Software\Microsoft\SystemCertificates\SmartCardRoot 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\My 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\CA 过程5228 (\Device\HarddiskVolume3\Windows\System32\inetsrv\w3wp.exe)已打开 钥匙 \注册表\USER\S-1-5-82-3231641130-1035467585-39029555-2466166849-1382764965\Software\Microsoft\SystemCertificates\不允许

这可能会有所帮助:

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

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

将应用程序池设置为4.0框架解决了这个问题

这个