Brian,
>It appears to raise an exception whose message says, "Requested registry access is not allowed." I've done some research and found some threads stating that special permissions need to be granted to the aspnet_wp process in the registry for the EventLog. I've tried this with no success.
Security setup is one of the pain-in-the-neck features of ASP.NET. It sounds like what you were trying should work (and you probably don't want to know that it works "out-of-the-box" on my machine)! I'll see if I can troll around and find anything more on this.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com