Is there an event log source that's always available for writing by an ASP.NET webapp?
Backstory, in case anyone has a seemingly unrelated solution:
Our ASP.NET webapp uses its own event log source, but it doesn't have the rights to create it. So, if the event log source doesn't exist when the webapp tries to write the entry (install instructions dictate that the admin register the event log source manually, but……) , our webapp doesn't put anything in the event log when it has problems.
I'm hoping there's another (app-agnostic) source I can use to notify the folks who watch the event log.
Best Answer
In this KB article it explains the issue http://support.microsoft.com/kb/329291
If you use the second approach under the resolution you should get it to work.
If you don't want to do that or you can't get it to work correctly another way would be to use the identity tag in your
web.config
and impersonate a user that does have rights to edit the registry. This is a security whole only for this application but if you implement some extra security measures you should be fine.