获取不到EventLogEntry.Message的值
有谁遇到这个error吗The description for Event ID '0' in Source 'Mytypes' cannot be found. The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the event:'Type: System.Exception
Message: CommonTest.EventLogWriterTest.WriteTest
'
我需要获取EventLogEntry.Message的值, 但显示的是这句话 --------------------编程问答-------------------- 无法找到事件ID描述'0'。本地计算机可能没有必要的注册表信息或消息DLL文件来显示邮件,或者可能没有权限访问
EventLog eventLog;
eventLog=new EventLog("TestEvent",".","mySource");
eventLog.Log="TestEvent";
foreach(EventLogEntry eventlogEntry in eventLog.Entries)
{
string s=eventlogEntry.Message;
} --------------------编程问答-------------------- wuyq11 说的很明白了。我就不多说了。 --------------------编程问答-------------------- 我同样的版本在VS2010 bata2里就没有问题 在RC里就有问题了
补充:.NET技术 , C#