This is a common situation when logging into the Windows event log. This is probably due to the fact that the event source is not registered on your Windows Server 2008. When you run it on your dev machine, you (like most developers) have administrator privileges, and the .NET framework automatically creates event sources in the first time you use them. Any application without administrator rights cannot create an event source, and therefore registration fails. The application continues to work because the philosophy of the logging unit should not be distracting, but nothing is logged.
When you deploy your application, you must specify an installer class to create event sources. For development, a quick solution is to use Windows PowerShell. Launch the advanced PowerShell process and use the following command:
[System.Diagnostics.EventLog]::CreateEventSource(sourceName, logName)
.
, InstallUtil EntLib. InstallServices.bat, EntLib, .
Codeplex.