Reading Custom Log

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When my application reads my custom error log with VB.NET the entry reads
simiar to the one below, but when it receives the EntryWritten event, the
Text is correct. How do I fix this

The message '0' for application 'WMInv' could not be formatted using
library(ies): ''. The log entry contains the following replacement
strings:'clsWilsonInv:UpdateShippingDB:Error in :Update
System.Data.SqlClient.SqlError: Procedure or function gsptblGrainAccounting
has too many arguments specified.
'
 
The message you listed here is interesting because of the empty string where
the library should be:

library(ies): ''.

It should read:

libary(ies):
'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\EventLogMessages.dll'.

The fact that .NET was unable to determine the event message source from the
registry must be the cause of your problem, but why it would succeed when you
receive the event notification I don't know.

Please re-check your registry and consider running some diagnostics such as
RegMon (http://www.sysinternals.com/ntw2k/source/regmon.shtml) to detect key
access failures.

The registry should look like:
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Eventlog
<event log name>
<event source name>

EventMessageFile="C:\WINNT\Microsoft.NET\Framework\v1.1.4322\EventLogMessages.dll"
 
Back
Top