Here a sample of code that will write to the application event log, using VB..NET: Public Function WriteToEventLog( ByVal Entry As String ) Dim appName As String = "Server Maintenance" Dim eventType As EventLogEntryType = EventLogEntryType. Error Dim logName = "Application" Dim objEventLog As New EventLog() Try 'Register the App as an Event Source If...