Sep 1, 2010 at 9:17 PM
Edited Sep 2, 2010 at 1:54 PM
I followed several rabbit trails on this one, and here is what I discovered.
I was getting the same type of message in my Event Log.
The description for Event ID ( 2001 ) in Source ( Enterprise Library Logging ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the
/AUXSOURCE= flag to retrieve this description; see Help and Support for details.
I have a Windows Service that is using the Enterprise Library Logging Application Block.
So I followed this previously mentioned blog entry:
I also following this KB:
I originally used "First Approach" to hand edit the registry.
What I ended up doing was.
1. I coded up the "Second Approach" from the MS KB.
2. I added in the installingeventsourcesfortheloggingapplicationblock.aspx code ... into the "Second Approach".
Code looked something like this:
public class EventLogInstallerHelper : Installer
private EventLogInstaller _eventLogInstaller1;
private static readonly string EVENT_VIEW_TYPE_APPLICATION = "Application";
//Create Instance of EventLogInstaller
_eventLogInstaller1 = new EventLogInstaller();
// Set the Source of Event Log, to be created.
_eventLogInstaller1.Source = "Enterprise Library Logging";
// Set the Log that source is created in
_eventLogInstaller1.Log = EVENT_VIEW_TYPE_APPLICATION;
// Add myEventLogInstaller to the Installers Collection.
3. (IMPORTANT: (If you were like me and followed the "First Approach" from the MS KB) I had to undo what I did in the "First Approach" MS KB.
I did this by calling the
InstallUtil /u EventLogSourceInstaller.dll
You must undo the "First Approach"
4. I ran the InstallUtil EventLogSourceInstaller.dll
At the end of it, I had this key defined (which is the same as "First Approach" as above.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Enterprise Library Logging
However, it had an "Expandable String Value" defined under it (which did not exist using the "First Approach" in the MS KB article)
The name of the value was "EventMessageFile"
and its value (REG_EXPAND_SZ) was "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll" (no quotes)
( obviously, the path has to match to your copy of EventLogMessages.dll )
So obviously, the "coded up solution" using InstallUtil EventLogSourceInstaller.dll is doing this work.
I recommend doing the "code it up" version, and using the RegistryKey and the Expandable-String-Value as VERIFICATION it worked....and not try to manually do it.
may have done something else I wasn't aware of.
I hope this helps somebody.....I was trying to give rights, and everything else under the sun like many others have tried as well.
Here is the equivalent of doing the "First Approach" in the MS KB article.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Enterprise Library Logging]
Save that as a .reg file and import it.