NLog not logging messages on XP SP3 with .NET 3.5 Client Profile

Posted by oltman on Stack Overflow See other posts from Stack Overflow or by oltman
Published on 2010-04-13T14:49:51Z Indexed on 2010/04/13 14:53 UTC
Read the original article Hit count: 500

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about nlog