在使用.NET 加解密需要注意的问题

最近使用了又碰到了使用.NET Framework 加解密失败的问题, 记得在两年前也是同样的搞得我崩溃,没有想到好了伤疤忘了痛,现在又不记得在这个地方碰到了问题. 这一次我一定要记住并记在这里,让我记住,这是权限的问题,权限!!权限!! Power User或者一般用户可能没有访问Event Log,或者DCOM写信息权限就容易出现这个问题... 注意,一定要注意!!

 

 Access Denied - the current user does not have permission to perform the action. 
Failed to fire the WMI event 'SecurityCryptoSymmetricDecryptionEvent'.  Exception: System.Runtime.InteropServices.COMException (0x80041003): Exception from HRESULT: 0x80041003
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Management.Instrumentation.EventSource..ctor(String namespaceName, String appName, InstrumentedAssembly instrumentedAssembly)
   at System.Management.Instrumentation.InstrumentedAssembly.InitEventSource(Object param)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值