相关疑难解决方法(0)

找不到源,但无法搜索部分或全部事件日志.无法访问的日志:安全性

我收到错误:

找不到源,但无法搜索部分或全部事件日志.无法访问的日志:安全性

当我在代码下运行以捕获Win 2K12 R2服务器IIS 8.5上的错误时

EventLog elog = new EventLog();
EventLog.CreateEventSource("MyApp", "Application");
EventLog.WriteEntry(Source, swError.ToString(), EventLogEntryType.Error);
Run Code Online (Sandbox Code Playgroud)

我已经完全访问HKLM\SYSTEM\CurrentControlSet\services\eventlog但它仍然没有工作.我该怎么做才能修好它?

c# iis event-log iis-8

61
推荐指数
6
解决办法
15万
查看次数

标签 统计

c# ×1

event-log ×1

iis ×1

iis-8 ×1