by Mikael Henriksson
27. January 2009 19:00
This has been bugging me for quite some time with throwing exceptions when I try to log from an asp.net page to Event Log. The solution is quite simple but it eludes me why nothing has been written about. At least not anywhere I have looked.
- Go to run (win+r) type in regedt32.
- Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog
- Right click, select permissions and Add the ASPNET account (IUSR as well????) with full rights
- Make sure that all child objects get the same rights
Done, now you can start logging to the event log.