views:

91

answers:

1

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?

A: 

Which version of NLog are you using? This should be a supported scenario in NLog 2.0, which comes with client-profile-specific assembly. You can download recent nightly builds from:

http://nlog-project.org/download.html

Let me know if it fixes the issue.

Jarek Kowalski
Our team decided to just write our own logging system due to the simplicity of the logging we were doing. Thanks though!Some way to close questions as "no longer an issue" would be great.
oltman