NLog: Switching from nlog.config to programmatic configuration
Do you run your application with enough rights to write a log file in the root of your C-drive? Try it with ${basedir}/nLogFile.txt and just see if this works.
Do you run your application with enough rights to write a log file in the root of your C-drive? Try it with ${basedir}/nLogFile.txt and just see if this works.