帮助我如何解决这个问题。 [英] Help me how to solve this issue.

查看:114
本文介绍了帮助我如何解决这个问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Quote:

找不到源,但无法搜索部分或全部事件日志。要创建源,您需要具有读取所有事件日志的权限,以确保新源名称是唯一的。无法访问的日志:安全性。 **异常堆栈跟踪:在System.Diagnostics.EventLog.FindSourceRegistration(String source,String machineName,Boolean readOnly,Boolean wantToCreate)

在System.Diagnostics.EventLog.SourceExists(String source,String machineName, System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName,String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message,EventLogEntryType type,Int32)在System.Diagnostics.EventLog.WriteEntry(字符串源,字符串消息,EventLogEntryType类型,Int32 eventID,Int16类别,字节[] rawData)的事件ID,Int16类别,字节[] rawData)

在System.Diagnostics.EventLog.WriteEntry(字符串源,字符串消息)

The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security. **Exception Stack Trace : at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)
at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)
at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message)





我尝试过:



我在10次中得到此错误4,我无法理解导致此错误的原因。


我哈拥有管理员权限并以管理员身份运行应用程序。



请帮助我。



What I have tried:

I am getting this Error 4 out of 10 times and I am unable to understand whats causing this error.

I have administrator permissions and also running the application as administrator.

Please help me on this.

推荐答案

看到那里,答案很多:

asp .net - 写入事件日志时的System.Security.SecurityException - 堆栈溢出 [ ^ ]
See there, lots of answer :
asp.net - System.Security.SecurityException when writing to Event Log - Stack Overflow[^]


这篇关于帮助我如何解决这个问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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