首页 新闻 会员 周边

System.Security.Cryptography.CryptographicException,密钥集不存在

0
悬赏园豆:50 [已解决问题] 解决于 2015-11-24 18:05

天啦撸,完全不知道什么状况,谁来帮帮我。

一打开网站就报这个错,自动打开调试器要我调试,点进去调试却又什么都看不到,完全不知道什么入手解决了

----------------------------------------------------------------------------------------

异常信息:

日志名称: Application
来源: ASP.NET 2.0.50727.0
日期: 2015/11/23 15:07:23
事件 ID: 1334
任务类别: 无
级别: 错误
关键字: 经典
用户: 暂缺
计算机: XXOO-20130822YGO
描述:
发生未处理的异常,并已终止进程。

Application ID: /LM/W3SVC/1/ROOT/hronline

Process ID: 17148

Exception: System.Security.Cryptography.CryptographicException

Message: 密钥集不存在。


StackTrace: 在 System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
在 System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
在 System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
在 System.Runtime.InteropServices.SafeHandle.InternalFinalize()
在 System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
在 System.Runtime.InteropServices.SafeHandle.Finalize()
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 2.0.50727.0" />
<EventID Qualifiers="49152">1334</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-11-23T07:07:23.000000000Z" />
<EventRecordID>31741</EventRecordID>
<Channel>Application</Channel>
<Computer>XXOO-20130822YGO</Computer>
<Security />
</System>
<EventData>
<Data>发生未处理的异常,并已终止进程。

Application ID: /LM/W3SVC/1/ROOT/hronline

Process ID: 17148

Exception: System.Security.Cryptography.CryptographicException

Message: 密钥集不存在。


StackTrace: 在 System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
在 System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
在 System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
在 System.Runtime.InteropServices.SafeHandle.InternalFinalize()
在 System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
在 System.Runtime.InteropServices.SafeHandle.Finalize()</Data>
</EventData>
</Event>

小小乌龟把头藏的主页 小小乌龟把头藏 | 初学一级 | 园豆:9
提问于:2015-11-23 15:38
< >
分享
最佳答案
0
收获园豆:50
Firen | 大侠五级 |园豆:5385 | 2015-11-24 16:53

非常感谢,已经解决了。是当前用户没有权限访问证书的私钥文件的问题,之前尝试去解决,但是在对:C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys这个目录授权的时候出错了,一直报这个错误 “将安全信息应用到以下对象时发生错误 拒绝访问”,最后在这里http://zhidao.baidu.com/link?url=_dCQV-Vgt-QhJ0XnAN6UaMU3enmbJiaZS6voZgT2vvqAo-1gchOEj8Y1mG_r8uMtunV21NY1y07yKGLSG5xr3a找到了授权的解决方案,为ereryone用户分配完全控制权限,密钥集的错误就解决了。再次感谢

小小乌龟把头藏 | 园豆:9 (初学一级) | 2015-11-24 18:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册