最近使用了又碰到了使用.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)
本文记录了一次使用.NET Framework进行加解密操作时遇到的权限问题导致的失败经历。作者强调了PowerUser或一般用户可能因缺少EventLog或DCOM写权限而引发异常,并分享了解决方案。
1万+

被折叠的 条评论
为什么被折叠?



