ASP not writing to Eventlog

ASP not writing to Eventlog

Post by c.verm » Fri, 11 Mar 2005 02:20:24


I have a VB, ASP program running on IIS 6.0.
The VB ActiveX dll writes events to eventlog using the following line
of code:

App.LogEvent (Err.Number & " " & Err.Description & " Source: " &
Err.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

End if

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?

Thanks,
Chanda.



I tried to implement your code in my project at
http://www.yqcomputer.com/

It works totally fine when I run IIS6.0 in integrated environment. But
when I use anonymous account, then nothing gets logged in eventlog.
 
 
 

ASP not writing to Eventlog

Post by c.verm » Fri, 11 Mar 2005 02:20:54

I have a VB, ASP program running on IIS 6.0.
The VB ActiveX dll writes events to eventlog using the following line
of code:

App.LogEvent (Err.Number & " " & Err.Description & " Source: " &
Err.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

End if

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?

Thanks,
CV.