If you write to the event log from an ASP.Net application, the default ASPNET account will not have the correct privileges to add your event source. You have to add the event source outside of the ASP.Net application. I used to use a C# console application...