未处理的安全异常 [英] Unhandled Security Exception

查看:54
本文介绍了未处理的安全异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到一个未处理的异常错误,并且异常详细信息在下面,有人可以帮助我对此进行解码吗?

谦虚,感谢你.

I have received an unhandled exception error, and the exception detail is below, can anyone help me to decode this?

Humbly, and thankfully yours.

System.Security.SecurityException was unhandled
  Message=The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
  Source=System
  StackTrace:
       at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
       at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
       at AlarmMan.mDebug.WriteEventToLog(String sSource, String StringtoWrite) in C:\Users\tjones\Desktop\SIA Bumper PaintWorks\source\Common.NET\mDebug.vb:line 89
       at AlarmMan.frmMain.WndProc(Message& WinMessage) in C:\Users\tjones\Desktop\SIA Bumper PaintWorks\source\AlarmMan.NET\frmMain.vb:line 4691
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException: 

推荐答案

无法访问的日志:安全性"表示您正在尝试向事件日志的安全性"部分写入内容.您可以改用应用程序"部分,或将日志写入自己的日志文件.
"Inaccessible logs: Security" means that you are trying to write something to the "Security" section of the event log. You could try the "Application" section instead, or write your logs to your own log files.


应用程序启动时,它将以启动它的用户身份启动.

由于相当明显的原因,普通用户无法写入安全事件日志.但是,他们可以写入应用程序事件日志.
When an application launches, it launches AS the user that launched it.

Normal users cannot write to the Security event log, for reasons that are fairly obvious. They can write to the Application event log though.


这篇关于未处理的安全异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆