阅读背景:

为什么此事件日志的EntryWritten事件永远不会触发?

来源:互联网 

I have the following code in both a C# console app and a C# windows service. It works in the console app. It picks up the specified event, and calls MatchEvent() correctly. The same code in a C# windows service does not pick up the same specified event, it never sees it, but sees the other events. The event in question is written to the Application log, so I am not trying to read the Security log.I have the following code in both a C# console




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: