I have a VB, ASP program running on IIS 6.0.
The VB ActiveX dll writes events to eventlog using the following line
App.LogEvent (Err.Number & " " & Err.Description & " Source: " &
The above dll is complied and is called in ASP page as follows:
if err.number <> 0 then
set myObj = server.CreateObject("ErrorHandler.Class1")
myobj.WinNTLog err.number, err.description, err.source, errmsg, 1
set myobj = nothing
The above code works fine when I run IIS under integrated account. I
pass my administrative crednetials on the server.
But when I run the above under anonymous account, then nothing gets
logged on to the eventlog. Any idea what is going on?
I tried to implement your code in my project at
It works totally fine when I run IIS6.0 in integrated environment. But
when I use anonymous account, then nothing gets logged in eventlog.