ASP.Net 3.5 running under IIS 7 doesn\'t seem to allow this out of the box.
if (!EventLog.SourceExists(\"MyAppLog\")) EventLog.CreateEven
Right click the application and choose "Run as Administrator"