View Single Post
  #1 (permalink)  
Old November 29th, 2004, 07:56 AM
bekim bekim is offline
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default AppException Class -Log Error to Event Log

Hello
I used the code in book, page 40, to get error to actually log the info to event log but it just doesn't work.
AppException.vb in Core


Private Sub LogEvent(ByVal message as String)
If Not EventLog.SourceExist("ThePhile.com") Then
EventLog.CreateEventSource("ThePhile.com"), "Application")
end if

EventLog.WriteEntry("ThePhile.com", message, EventLogEntryType.Error)
End Sub

What could be the problem??