Reading Custom Log

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.
'
 
G

Guest

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top