views:

19

answers:

1

Typical scenario, I am using EntLib 5.0-April 2010 Logging on my development machine and everything works like a charm, when I try to put in production on our web server, it does not work.

Development machine is Windows 7 using VS2008. Production server is Windows Server 2003 R2 with Microsoft .NET Framework 3.5 with Service Pack 1.

I am including the LAB DLLs in the project (Common, Logging, ServiceLocation), not in the GAC.

Any ideas?

thanks in advance

+1  A: 

It turns out that since I was running the web app from VS run as an administrator, the LogSource is created for me. When in production, the app is run with normal privileges and requires the LogSource to be created by an admin. Check out the following:

http://entlib.codeplex.com/wikipage?title=Why%20are%20messages%20not%20logged?&referringTitle=EntLib%20FAQ

sme
a simple alternative is to write a small app and run as admin on server that executes the following:EventLog.CreateEventSource("LogSource", "LogName");
sme