Is there a way to access the event logs of a server (or the local machine for now) using Silverlight and C#? The EventLog class is not available in Silverlight due to the System.Diagnostics namespace not being available for the Silverlight runtime.
Asked
Active
Viewed 980 times
1 Answers
1
You could get the log entries using a webservice (WCF for example) which can then be accessed from your SL app. Of course this works for server only. I don't know if it is possible for the client.

iCollect.it Ltd
- 92,391
- 25
- 181
- 202

mslliviu
- 1,098
- 2
- 12
- 30
-
SL cant access local event log on client because of rights limitations. – Valentin Kuzub May 18 '12 at 20:32
-
Can you give me some reference as to how can I read the eventlogs using WCF or any other webservice? MSDN documentation only seems to talk about Event logging and tracing. – varagrawal May 19 '12 at 07:44
-
I never had to read it from an app, but on msdn it looks easy.http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.entries.aspx – mslliviu May 21 '12 at 06:20