Ask a Question related to ASP.NET Security, Design and Development.
-
Graham Harris #1
Writing ASP.NET errors to the NT Applicaion Event Log
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
Graham Harris Guest
-
jrun default event log errors
Does anyone see any familiar issues by just looking at this default-event.log from the Jrun server? We are running CFMX6.1 updater. Thanks for... -
Event Service errors
My server log and exception log both contain this error string when I restart the service. Unable to initialize Event service:... -
DCOM Errors on 2003 Ent, Event ID:10016
Everyone, Really pulling my hair out on this one and hope somone can help. Built a new 2003 Advanced Server, SP1 and copied our web site... -
Event Errors
We are running windows server 2003 and are getting sevice failed errors on start up directing to look in the event viewer. This is the error:... -
Application Event log errors
I've got XP Pro clients on a W2K domain, the DC running AD, DNS and DHCP. In my XP application event log I get these 2 errors regularly: ... -
Dominick Baier [DevelopMentor] #2
Re: Writing ASP.NET errors to the NT Applicaion Event Log
Hello Graham,
in w2k3 you can set ACLs on Event Logs - this is done by using an SDDL (Security
Descriptor Description Language).
The default for the Application Log is
O:BAG:SYD:(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0x f0007;;;SY)(A;;0x7;;;BA)
(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)
(nice, eh?)
found under : HKEY_LOCAL_MACHINE\System\CurrentControlSet\ Services\Eventlog\Application\CustomSD
this basically means service accounts/admins have read/write - no one else
you can find more info on SDDL via
[url]http://msdn.microsoft.com/library/en-us/security/security/security_descriptor_string_format.asp[/url]
and more info on how to change that settings:
[url]http://msdn.microsoft.com/library/en-us/dncode/html/secure06122003.asp[/url]
---------------------------------------
Dominick Baier - DevelopMentor
[url]http://www.leastprivilege.com[/url]
> 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
>
Dominick Baier [DevelopMentor] Guest
-
Brad #3
Re: Writing ASP.NET errors to the NT Applicaion Event Log
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" <ng@bmsgharr.globalnet.co.uk> 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
Brad Guest
-
Dominick Baier [DevelopMentor] #4
Re: Writing ASP.NET errors to the NT Applicaion Event Log
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
[url]http://www.leastprivilege.com[/url]
> 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" <ng@bmsgharr.globalnet.co.uk> 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
>>
Dominick Baier [DevelopMentor] Guest



Reply With Quote

