|
Попытка записи в event viewer
|
|||
---|---|---|---|
#18+
I'm trying to write to the event viewer, by first creating an EventSource and I get the following error: Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Requested registry access is not allowed. Source Error: if(!EventLog.SourceExists("MySource")) { EventLog.CreateEventSource ("MySource", "MyNewLog"); Console.WriteLine("CreatingEventSource"); } How do I gran the apllication the required permission for writing to the Event viewer? ... |
|||
:
Нравится:
Не нравится:
|
|||
08.01.2003, 14:53 |
|
|
start [/forum/topic.php?fid=17&fpage=135&tid=1354399]: |
0ms |
get settings: |
11ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
26ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 232ms |
total: | 350ms |
0 / 0 |