Re: Writing ASP.NET errors to the NT Applicaion Event Log

From: Dominick Baier [DevelopMentor] (
Date: 05/14/05

Date: Sat, 14 May 2005 00:58:32 -0700

Hello Brad,

it all depends under which account your app is running - as you can see,
Service Accounts are allowed to write to the Application Log - but not custom
accounts, by default.

But it is true - you cannot create an Event Source as non admin.

Write a little console app the pre-creates it and run it as admin.

Dominick Baier - DevelopMentor

> Our aspx apps write to the Application event log on w2k3 server and we
> didn't have to change anything. Are you by chance trying to specify
> the Source property of the event? If so, you basically want to create
> the Source value as a valid event source in advance. Once you do that
> it should work without any permission changes.
> "Graham Harris" <> wrote in message
> news:O7fNceVVFHA.4028@TK2MSFTNGP10.phx.gbl...
>> I have some code that presents the user with an error if my web
>> application errors. I would like to write the same information to the
>> NT Application Event log. The problem is that Windows 2003 Server
>> does not allow IIS ASP.NET to write to the event log. What do I need
>> to do to allow this?
>> TIA
>> Graham Harris