Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Write to event log from COM component in an ASP 3 page on W2K3

Reply
Thread Tools

Write to event log from COM component in an ASP 3 page on W2K3

 
 
travislspencer@gmail.com
Guest
Posts: n/a
 
      08-04-2006
Hey All,

I have some ASP 3 pages that instantiate a COM component. That
component writes messages to the one of the Windows event logs.

Things work as I expect them to on XP Pro but not on 2003 Server. I
figured it was a security thing, so I surfed around and found that
permissions were tightened in the server's first service pack. The fix
I found[1] said to append an ACE[2] to the event log's CustomSD
registry value found at

HKLM\SYSTEM\CurrentControlSet\Services\EventLog\{L OG_NAME}\CustomSD

I tried three different ones with a reboot after appending each one:

1. (A;;0x3;;;AU)
2. (A;;0x3;;;NS)
3. (A;;0x0002;;;S-1-5-21-237510213-3056582554-1478882900-1003)

The last uses the full SID of the IUSR account on the Windows 2003 I'm
working on. I obtained that ID using this VBScript:

Dim WshNetwork
Dim strComputer, Account
Dim objWMIService, colItems, objItem

Set WshNetwork = WScript.CreateObject("WScript.Network")

strComputer = "."
Account = "IUSR_" & WshNetwork.ComputerName

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Account
where Name = '" & Account & "'" )

For Each objItem in colItems
Wscript.Echo objItem.SID
Next

If anyone has any advice that can help me figure out how to solve this
problem, I would really appreciate it.

TIA!

--

Regards,

Travis Spencer

[1] http://tinyurl.com/obd49, http://tinyurl.com/f0o8, and
http://tinyurl.com/m4eun.
[2] http://tinyurl.com/r3j48

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write an Event Entry in Windows Event Log with C# Examples and VB.Net Examples jayeshsorathia@gmail.com ASP .Net 0 08-22-2012 07:49 AM
Adding W2K3 R2 x64 DC to Existing W2K3 R2 x32 domain =?Utf-8?B?RGF2ZSBBbGxlcnRvbg==?= Windows 64bit 1 08-25-2006 02:25 PM
ASP Problem: "IIS log failed to write entry" in Event Log cherryparadise001@gmail.com ASP General 0 05-26-2006 01:52 AM
My.Log.WriteException not writing to Event Log with ASP.Net 2.0 Tom Wingert ASP .Net Web Services 0 01-12-2006 06:46 PM
Need help on the Permissions needed to log to Event Log from ASP.NET? Henrik_the_boss ASP .Net 0 11-05-2003 10:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57