NLog not logging messages on XP SP3 with .NET 3.5 Client Profile
- by oltman
I'm writing a program that is targeting the .NET 3.5 Client Profile and using NLog. I configure my logger programmatically on start up (no config file.)
It works perfectly on Vista and Windows 7, but when running on a fresh install of XP SP3 with the .NET Client Profile installed, it will not log any of the variables in the layout string. For example, with the layout string set to:
target.Layout = "MESSAGE: ${longdate}|${level}|${message}";
It will log "MESSAGE: | | |"
Again, this only happens on XP SP3, and the logger is set to throw exceptions. Any ideas what may be causing this?