相关疑难解决方法(0)

我需要更改以允许我的IIS7 ASP.Net 3.5应用程序创建事件源并将事件记录到Windows EventLog?

在IIS 7下运行的ASP.Net 3.5似乎不允许开箱即用.

        if (!EventLog.SourceExists("MyAppLog"))
            EventLog.CreateEventSource("MyAppLog", "Application");

        EventLog myLog = new EventLog();
        myLog.Source = "MyAppLog";
        myLog.WriteEntry("Message");
Run Code Online (Sandbox Code Playgroud)

asp.net permissions iis-7 event-log .net-3.5

32
推荐指数
3
解决办法
4万
查看次数

标签 统计

.net-3.5 ×1

asp.net ×1

event-log ×1

iis-7 ×1

permissions ×1