<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>nlog Issue Tracker Rss Feed</title><link>http://nlog.codeplex.com/WorkItem/List.aspx</link><description>nlog Issue Tracker Rss Description</description><item><title>Created Issue: Data loss when applying concurrentWrites and keepFileOpen [7425]</title><link>http://nlog.codeplex.com/workitem/7425</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Consider following scenario.&lt;br /&gt;&lt;br /&gt;1. I am starting 5 applications logging 30,000 messages each.&lt;br /&gt;2. I am expecting 1,50,000 messages at the end in the log files. Applications are sharing the same log file destination.&lt;br /&gt;3. I am leveraging concurrentWrites &amp;#61; true and keepFileOpen &amp;#61; true. Now the problem is, we are not getting 1,50,000 messages logged at the end.&lt;br /&gt;&lt;br /&gt;We have around 1,30,000 messages and other messages are lost. I am closing all applications once all logs are written to the file and I am also calling LogManager.Flush&amp;#40;&amp;#41;&amp;#59; at the end. &lt;br /&gt;&lt;br /&gt;Are we missing any configuration here&amp;#63; Attached is my configuration.&lt;br /&gt;Any help in this direction would be great&amp;#33;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description><author>powertoy</author><pubDate>Wed, 24 Apr 2013 13:22:32 GMT</pubDate><guid isPermaLink="false">Created Issue: Data loss when applying concurrentWrites and keepFileOpen [7425] 20130424012232P</guid></item><item><title>Commented Issue: Async Wrapper is not working [7422]</title><link>http://nlog.codeplex.com/workitem/7422</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;We are getting different behaviors when enabling Aync logging by using AsyncWrapper. As I know there are 2 ways to enable this.&lt;br /&gt;&lt;br /&gt;1. by using &amp;#60;targets async &amp;#61;&amp;#34; true&amp;#34;&amp;#62;&lt;br /&gt;2. by providing a new target by using &amp;#60;target name&amp;#61;&amp;#34;asyncWrapper&amp;#34; xsi&amp;#58;type&amp;#61;&amp;#34;AsyncWrapper&amp;#34; queueLimit&amp;#61;&amp;#34;5000&amp;#34; overflowAction&amp;#61;&amp;#34;Grow&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;The option 1 is fast and i can see that my logs are written on a different thread. I can see that 50000 log messages are being written when program control comes back. The only problem here is, log messages are lost.&lt;br /&gt;&lt;br /&gt;The option 2 is not at all working. It seems that NLog writes messages synchronously and doesn&amp;#39;t return control.&lt;br /&gt;&lt;br /&gt;Are we missing any NLog specific configuration for option number 2&amp;#63;&lt;br /&gt;&lt;br /&gt;Attached is the configuration file I am using.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Comments: ** Comment from web user: powertoy ** &lt;p&gt;Thanks a lot Jaroslaw. It worked!&lt;/p&gt;&lt;p&gt;Now I am facing another issue. Consider following scenario.&lt;/p&gt;&lt;p&gt;1. I am starting 5 applications logging 30,000 messages each.&lt;br&gt;2. I am expecting 1,50,000 messages at the end in the final log file. Applications are sharing the same log file.&lt;br&gt;3. I am leveraging concurrentWrites = true and keepFileOpen = true.&lt;/p&gt;&lt;p&gt;Now the problem is, we are not getting 1,50,000 messages logged at the end. We have around 1,30,000 messages and other messages are lost.&lt;/p&gt;&lt;p&gt;I am closing all applications once all logs are written to the file and I am also calling LogManager.Flush(); at the end.&lt;/p&gt;&lt;p&gt;__Are we again missing any configuration here?__&lt;/p&gt;&lt;p&gt;Following is my configuration.&lt;/p&gt;&lt;p&gt;&amp;lt;nlog xmlns=&amp;quot;http://www.nlog-project.org/schemas/NLog.xsd&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&amp;gt;&lt;br&gt;    &amp;lt;targets&amp;gt;&lt;br&gt;      &amp;lt;target name=&amp;quot;asyncWrapper&amp;quot; xsi:type=&amp;quot;AsyncWrapper&amp;quot; queueLimit=&amp;quot;5000&amp;quot; overflowAction=&amp;quot;Grow&amp;quot;&amp;gt;&lt;br&gt;        &amp;lt;target name=&amp;quot;file&amp;quot;&lt;br&gt;             xsi:type=&amp;quot;File&amp;quot;&lt;br&gt;             layout=&amp;quot;${message}&amp;quot;&lt;br&gt;             fileName=&amp;quot;${basedir}/../Log/Test.log&amp;quot;&lt;br&gt;             archiveFileName=&amp;quot;${basedir}/../Log/Test.{#####}.log&amp;quot;&lt;br&gt;             archiveAboveSize=&amp;quot;4194304&amp;quot;&lt;br&gt;             archiveNumbering=&amp;quot;Rolling&amp;quot;&lt;br&gt;             concurrentWrites=&amp;quot;true&amp;quot;&lt;br&gt;             maxArchiveFiles=&amp;quot;10000&amp;quot;&lt;br&gt;             keepFileOpen=&amp;quot;true&amp;quot;&lt;br&gt;             encoding=&amp;quot;iso-8859-2&amp;quot; /&amp;gt;&lt;br&gt;      &amp;lt;/target&amp;gt;&lt;br&gt;    &amp;lt;/targets&amp;gt;&lt;br&gt;    &amp;lt;rules&amp;gt;&lt;br&gt;      &amp;lt;logger name=&amp;quot;*&amp;quot; minlevel=&amp;quot;Info&amp;quot; writeTo=&amp;quot;asyncWrapper&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/rules&amp;gt;&lt;/p&gt;&lt;p&gt;  &amp;lt;/nlog&amp;gt;&lt;/p&gt;</description><author>powertoy</author><pubDate>Wed, 24 Apr 2013 12:44:55 GMT</pubDate><guid isPermaLink="false">Commented Issue: Async Wrapper is not working [7422] 20130424124455P</guid></item><item><title>Commented Issue: Async Wrapper is not working [7422]</title><link>http://nlog.codeplex.com/workitem/7422</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;We are getting different behaviors when enabling Aync logging by using AsyncWrapper. As I know there are 2 ways to enable this.&lt;br /&gt;&lt;br /&gt;1. by using &amp;#60;targets async &amp;#61;&amp;#34; true&amp;#34;&amp;#62;&lt;br /&gt;2. by providing a new target by using &amp;#60;target name&amp;#61;&amp;#34;asyncWrapper&amp;#34; xsi&amp;#58;type&amp;#61;&amp;#34;AsyncWrapper&amp;#34; queueLimit&amp;#61;&amp;#34;5000&amp;#34; overflowAction&amp;#61;&amp;#34;Grow&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;The option 1 is fast and i can see that my logs are written on a different thread. I can see that 50000 log messages are being written when program control comes back. The only problem here is, log messages are lost.&lt;br /&gt;&lt;br /&gt;The option 2 is not at all working. It seems that NLog writes messages synchronously and doesn&amp;#39;t return control.&lt;br /&gt;&lt;br /&gt;Are we missing any NLog specific configuration for option number 2&amp;#63;&lt;br /&gt;&lt;br /&gt;Attached is the configuration file I am using.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Comments: ** Comment from web user: jkowalski ** &lt;p&gt;You need to fix your rules. Instead of writeTo=&amp;quot;file&amp;quot; you need to say writeTo=&amp;quot;asyncWrapper&amp;quot;. Right now you're not really using the wrapper.&lt;/p&gt;</description><author>jkowalski</author><pubDate>Tue, 23 Apr 2013 16:14:27 GMT</pubDate><guid isPermaLink="false">Commented Issue: Async Wrapper is not working [7422] 20130423041427P</guid></item><item><title>Commented Issue: Async Wrapper is not working [7422]</title><link>http://nlog.codeplex.com/workitem/7422</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;We are getting different behaviors when enabling Aync logging by using AsyncWrapper. As I know there are 2 ways to enable this.&lt;br /&gt;&lt;br /&gt;1. by using &amp;#60;targets async &amp;#61;&amp;#34; true&amp;#34;&amp;#62;&lt;br /&gt;2. by providing a new target by using &amp;#60;target name&amp;#61;&amp;#34;asyncWrapper&amp;#34; xsi&amp;#58;type&amp;#61;&amp;#34;AsyncWrapper&amp;#34; queueLimit&amp;#61;&amp;#34;5000&amp;#34; overflowAction&amp;#61;&amp;#34;Grow&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;The option 1 is fast and i can see that my logs are written on a different thread. I can see that 50000 log messages are being written when program control comes back. The only problem here is, log messages are lost.&lt;br /&gt;&lt;br /&gt;The option 2 is not at all working. It seems that NLog writes messages synchronously and doesn&amp;#39;t return control.&lt;br /&gt;&lt;br /&gt;Are we missing any NLog specific configuration for option number 2&amp;#63;&lt;br /&gt;&lt;br /&gt;Attached is the configuration file I am using.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Comments: ** Comment from web user: jagrutpatel ** &lt;p&gt;Ditto issue!&lt;/p&gt;&lt;p&gt;Is AsyncWrapper async at all? I don't see any difference with or without this target. It takes almost same time to log, say 50K messages. What is the correct way to achieve async logging using AsyncWrapper? For me OverFlowAction = Grow is important parameter. &lt;/p&gt;&lt;p&gt;I then tried &amp;quot;async=true&amp;quot;. It is truly async. But alas! There is data loss. Not all log messages got logged even if the application is running. Is this because by default OverFlowAction is Discard so log messages that exceed the default queueLimit will be dropped?&lt;/p&gt;</description><author>jagrutpatel</author><pubDate>Tue, 23 Apr 2013 12:42:54 GMT</pubDate><guid isPermaLink="false">Commented Issue: Async Wrapper is not working [7422] 20130423124254P</guid></item><item><title>Commented Issue: Async Wrapper is not working [7422]</title><link>http://nlog.codeplex.com/workitem/7422</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;We are getting different behaviors when enabling Aync logging by using AsyncWrapper. As I know there are 2 ways to enable this.&lt;br /&gt;&lt;br /&gt;1. by using &amp;#60;targets async &amp;#61;&amp;#34; true&amp;#34;&amp;#62;&lt;br /&gt;2. by providing a new target by using &amp;#60;target name&amp;#61;&amp;#34;asyncWrapper&amp;#34; xsi&amp;#58;type&amp;#61;&amp;#34;AsyncWrapper&amp;#34; queueLimit&amp;#61;&amp;#34;5000&amp;#34; overflowAction&amp;#61;&amp;#34;Grow&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;The option 1 is fast and i can see that my logs are written on a different thread. I can see that 50000 log messages are being written when program control comes back. The only problem here is, log messages are lost.&lt;br /&gt;&lt;br /&gt;The option 2 is not at all working. It seems that NLog writes messages synchronously and doesn&amp;#39;t return control.&lt;br /&gt;&lt;br /&gt;Are we missing any NLog specific configuration for option number 2&amp;#63;&lt;br /&gt;&lt;br /&gt;Attached is the configuration file I am using.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Comments: ** Comment from web user: Harshil13 ** &lt;p&gt;We have also observed the same behaviour. However, the actual behaviour is asyncWrapper doesn't work asynchronously and to make the code async, we have to have &amp;lt;targets async =&amp;quot; true&amp;quot;&amp;gt; set, which in turns overwrites all underlying setting at &amp;lt;target xsi:type=&amp;quot;File&amp;quot; .... /&amp;gt; level. In such cases it mandates the default settings.&lt;/p&gt;&lt;p&gt;Is this bug?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description><author>Harshil13</author><pubDate>Tue, 23 Apr 2013 12:30:23 GMT</pubDate><guid isPermaLink="false">Commented Issue: Async Wrapper is not working [7422] 20130423123023P</guid></item><item><title>Created Issue: Async Wrapper is not working [7422]</title><link>http://nlog.codeplex.com/workitem/7422</link><description>Hi All,&lt;br /&gt;&lt;br /&gt;We are getting different behaviors when enabling Aync logging by using AsyncWrapper. As I know there are 2 ways to enable this.&lt;br /&gt;&lt;br /&gt;1. by using &amp;#60;targets async &amp;#61;&amp;#34; true&amp;#34;&amp;#62;&lt;br /&gt;2. by providing a new target by using &amp;#60;target name&amp;#61;&amp;#34;asyncWrapper&amp;#34; xsi&amp;#58;type&amp;#61;&amp;#34;AsyncWrapper&amp;#34; queueLimit&amp;#61;&amp;#34;5000&amp;#34; overflowAction&amp;#61;&amp;#34;Grow&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;The option 1 is fast and i can see that my logs are written on a different thread. I can see that 50000 log messages are being written when program control comes back. The only problem here is, log messages are lost.&lt;br /&gt;&lt;br /&gt;The option 2 is not at all working. It seems that NLog writes messages synchronously and doesn&amp;#39;t return control.&lt;br /&gt;&lt;br /&gt;Are we missing any NLog specific configuration for option number 2&amp;#63;&lt;br /&gt;&lt;br /&gt;Attached is the configuration file I am using.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;</description><author>powertoy</author><pubDate>Tue, 23 Apr 2013 12:15:26 GMT</pubDate><guid isPermaLink="false">Created Issue: Async Wrapper is not working [7422] 20130423121526P</guid></item><item><title>Commented Issue: AspNetBufferingWrapper not working for IIS7 [7356]</title><link>http://nlog.codeplex.com/workitem/7356</link><description>Hi, I have an MVC3 project with NLog.2.0.0.2000 and NLog.Extended.2.0.0.2000&lt;br /&gt;I can&amp;#39;t seem to use NLog.Extended &amp;#39;AspNetBufferingWrapper&amp;#39;. I have added the NLog.Extended module to &amp;#39;httpModules&amp;#39;. &lt;br /&gt;I believe that because I&amp;#39;m using IIS7, the httpModules does not work in integrated mode. &lt;br /&gt;I&amp;#39;ve tried adding to the system.webServer module, but to no avail. &lt;br /&gt;Can you help me&amp;#63; If this is the source of the issue, the documentation should also be updated, right&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: pedrofilipebin ** &lt;p&gt;Details at http://stackoverflow.com/questions/15504727/nlog-extended-aspnetbufferingwrapper-not-working&lt;/p&gt;</description><author>pedrofilipebin</author><pubDate>Tue, 19 Mar 2013 16:15:47 GMT</pubDate><guid isPermaLink="false">Commented Issue: AspNetBufferingWrapper not working for IIS7 [7356] 20130319041547P</guid></item><item><title>Created Issue: AspNetBufferingWrapper not working for IIS7 [7356]</title><link>http://nlog.codeplex.com/workitem/7356</link><description>Hi, I have an MVC3 project with NLog.2.0.0.2000 and NLog.Extended.2.0.0.2000&lt;br /&gt;I can&amp;#39;t seem to use NLog.Extended &amp;#39;AspNetBufferingWrapper&amp;#39;. I have added the NLog.Extended module to &amp;#39;httpModules&amp;#39;. &lt;br /&gt;I believe that because I&amp;#39;m using IIS7, the httpModules does not work in integrated mode. &lt;br /&gt;I&amp;#39;ve tried adding to the system.webServer module, but to no avail. &lt;br /&gt;Can you help me&amp;#63; If this is the source of the issue, the documentation should also be updated, right&amp;#63;&lt;br /&gt;</description><author>pedrofilipebin</author><pubDate>Tue, 19 Mar 2013 15:32:01 GMT</pubDate><guid isPermaLink="false">Created Issue: AspNetBufferingWrapper not working for IIS7 [7356] 20130319033201P</guid></item><item><title>Commented Issue: Create layout renderer assembly-version [6932]</title><link>http://nlog.codeplex.com/workitem/6932</link><description>&amp;#60;p&amp;#62;It would be useful to have a &amp;#36;&amp;#123;assembly-version&amp;#125; layout renderer for use with headers, so you could log, for example&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;header&amp;#61;&amp;#38;quot&amp;#59;Application Startup. Version &amp;#36;&amp;#123;assembly-version&amp;#125;, PID &amp;#36;&amp;#123;processid&amp;#125;&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: consept ** &lt;p&gt;Is this what you were looking for: http://lowleveldesign.wordpress.com/2012/11/22/nlog-layoutrenderer-for-assembly-version/?&lt;/p&gt;</description><author>consept</author><pubDate>Thu, 22 Nov 2012 13:39:06 GMT</pubDate><guid isPermaLink="false">Commented Issue: Create layout renderer assembly-version [6932] 20121122013906P</guid></item><item><title>Commented Issue: LogManager.Flush throws exceptions [6227]</title><link>http://nlog.codeplex.com/workitem/6227</link><description>&amp;#60;p&amp;#62;Despite having throwsExceptions&amp;#61;&amp;#38;quot&amp;#59;false&amp;#38;quot&amp;#59; in the configuration when I called LogManager.Flush&amp;#40;&amp;#41;, it rethrew a timeout exception that I think was thrown by the first target in a failback group. I need to Flush because I unload the AppDomain and I don&amp;#38;&amp;#35;39&amp;#59;t want to lose a log which gets sent to a remote database using an asynchronous database target.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Expected behavior would be for it to simply log the error, it should never throw an unhandled exception that brings down my whole process.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;This is the error I got when calling flush&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62; Exception&amp;#58; NLog.NLogRuntimeException&amp;#58; Asynchronous exception has occurred. ---&amp;#38;gt&amp;#59; System.TimeoutException&amp;#58; Timeout.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   --- End of inner exception stack trace ---&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at NLog.Common.AsyncHelpers.RunSynchronously&amp;#40;AsynchronousAction action&amp;#41; in c&amp;#58;&amp;#92;NLogBuild&amp;#92;src&amp;#92;NLog&amp;#92;Common&amp;#92;AsyncHelpers.cs&amp;#58;line 226&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at NLog.LogFactory.Flush&amp;#40;TimeSpan timeout&amp;#41; in c&amp;#58;&amp;#92;NLogBuild&amp;#92;src&amp;#92;NLog&amp;#92;LogFactory.cs&amp;#58;line 370&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at Tps.PowerTools.CoreEngine.V5.Processor.Milestone.BatchRunner.Run&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;SourceCode&amp;#92;Tps.PowerToolsV1&amp;#92;Trunk&amp;#92;Libraries&amp;#92;CoreEngine&amp;#92;CoreEngine.V5&amp;#92;Processor&amp;#92;Milestone&amp;#92;BatchRunner.cs&amp;#58;line 195&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at Tps.PowerTools.CoreEngine.V5.Processor.Milestone.BatchRunner.Run&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: MichelZ ** &lt;p&gt;Any plans on when a new version will be released?&lt;/p&gt;</description><author>MichelZ</author><pubDate>Wed, 14 Nov 2012 14:00:13 GMT</pubDate><guid isPermaLink="false">Commented Issue: LogManager.Flush throws exceptions [6227] 20121114020013P</guid></item><item><title>Commented Issue: TraceTarget blocks application when logging error events - Trace.Fail [2599]</title><link>http://nlog.codeplex.com/workitem/2599</link><description>&amp;#60;p&amp;#62;My application - a windows service - stops working when logging errors to TraceTarget. &amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;The Write method in TraceTarget calls Trace.Fail which causes the application to stop an and popup a retry&amp;#47;abort&amp;#47;ignore dialog.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Trace.cs&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;if &amp;#40;logEvent.Level &amp;#38;gt&amp;#59;&amp;#61; LogLevel.Error&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#9;Trace.Fail&amp;#40;CompiledLayout.GetFormattedMessage&amp;#40;logEvent&amp;#41;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;else&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#9;Trace.WriteLine&amp;#40;CompiledLayout.GetFormattedMessage&amp;#40;logEvent&amp;#41;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: thnk2wn ** &lt;p&gt;Any word on when this might be fixed in the NuGet package?&lt;/p&gt;</description><author>thnk2wn</author><pubDate>Tue, 13 Nov 2012 22:04:03 GMT</pubDate><guid isPermaLink="false">Commented Issue: TraceTarget blocks application when logging error events - Trace.Fail [2599] 20121113100403P</guid></item><item><title>Closed Issue: Client Profile Support [5012]</title><link>http://nlog.codeplex.com/workitem/5012</link><description>&amp;#60;p&amp;#62;The client profile has been around since .NET 3.5.  With .NET 4 and VS2010, it has become far more important.  Microsoft has decided that only the client profile will be distributed automatically through Windows Update.  So if developers wish to provide applications that run out of the box on up to date systems, they need to use the client profile.  As well, VS2010 uses the client profile as the default for a number of project types now.  While VS2008 used to compile things with warnings, VS2010 now produces errors when linking against assemblies that aren&amp;#38;&amp;#35;39&amp;#59;t client profile-enabled.  As such, NLog should support the client profile.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;ve been involved in moving many projects to the client profile and the most straightforward way has been to remove the reference to System.Web and add a bit of reflection&amp;#47;delegates to move the compile time dependency to runtime.  Although I haven&amp;#38;&amp;#35;39&amp;#59;t fully analyzed the NLog code base, in the other systems I&amp;#38;&amp;#35;39&amp;#59;ve dealt with, the actual number of types&amp;#47;properties&amp;#47;methods that aren&amp;#38;&amp;#35;39&amp;#59;t in the client profile has been small and they have been easy to eliminate with reflective techniques such as Delegate.CreateDelegate&amp;#40;&amp;#41; on methods.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;d be happy to help out in this area.  I was originally trying to get something to happen with log4net, but it seems like all the maintainers are gone.  I&amp;#38;&amp;#35;39&amp;#59;m definitely hoping we can make some progress on having a client profile-enabled logging framework with NLog.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Fixed&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 18:03:06 GMT</pubDate><guid isPermaLink="false">Closed Issue: Client Profile Support [5012] 20121007060306P</guid></item><item><title>Closed Issue: NLog throws exception [4071]</title><link>http://nlog.codeplex.com/workitem/4071</link><description>&amp;#60;p&amp;#62;When two or more instances of an application is executed in parallel, and they reach the logger at the same time, NLog throws an exception, which causes application to crash.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Need more information&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 18:02:54 GMT</pubDate><guid isPermaLink="false">Closed Issue: NLog throws exception [4071] 20121007060254P</guid></item><item><title>Closed Issue: Autoreload not working on *nix systems [3653]</title><link>http://nlog.codeplex.com/workitem/3653</link><description>&amp;#60;p&amp;#62;Autoreload functionality doesn&amp;#38;&amp;#35;39&amp;#59;t work on &amp;#42;nix systems. After a small investigation I&amp;#38;&amp;#35;39&amp;#59;ve found that in&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;XmlLoggingConfiguration.cs&amp;#58;132 &amp;#40;NLog-1.0 Refresh sources&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;there&amp;#38;&amp;#35;39&amp;#59;s a line&amp;#58; &amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;string key &amp;#61; Path.GetFullPath&amp;#40;fileName&amp;#41;.ToLower&amp;#40;CultureInfo.InvariantCulture&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;later that key is written to _visitedFiles which is used to define files that file watcher is supposed to observer. What&amp;#38;&amp;#35;39&amp;#59;s the point of invoking &amp;#38;quot&amp;#59;ToLower&amp;#38;quot&amp;#59; function on file path&amp;#63;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Moved to https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;NLog&amp;#47;NLog&amp;#47;issues&amp;#47;148&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 18:02:35 GMT</pubDate><guid isPermaLink="false">Closed Issue: Autoreload not working on *nix systems [3653] 20121007060235P</guid></item><item><title>Closed Issue: I'm using longdate, but sometimes dates are in local time instead of UTC [2709]</title><link>http://nlog.codeplex.com/workitem/2709</link><description>&amp;#60;p&amp;#62;Reported in the forum at post&amp;#58; http&amp;#58;&amp;#47;&amp;#47;nlog-project.org&amp;#47;forum.html&amp;#35;nabble-tc1685765&amp;#124;a1685765&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Is this a known bug&amp;#63;  Although the LayoutRenderer specifies longdate, sometimes the dates written to the log file are in local time.  This happens intermittently and apparently, only when the level is Error and there is a stack trace.  NLog version&amp;#58;  1.0.0.505.  Here&amp;#38;&amp;#35;39&amp;#59;s the target spec&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;target name&amp;#61;&amp;#38;quot&amp;#59;RollingFileTarget&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            type&amp;#61;&amp;#38;quot&amp;#59;File&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            filename&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;environment&amp;#58;variable&amp;#61;MYAPP_HOME_FOLDER&amp;#125;&amp;#92;log&amp;#92;MyLog.log&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            layout&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;level&amp;#125; &amp;#36;&amp;#123;longdate&amp;#125; &amp;#36;&amp;#123;threadid&amp;#125; &amp;#36;&amp;#123;logger&amp;#125; - &amp;#36;&amp;#123;message&amp;#125; &amp;#36;&amp;#123;exception&amp;#58;format&amp;#61;message,stacktrace&amp;#58;separator&amp;#61;&amp;#42;&amp;#125;&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            archiveAboveSize&amp;#61;&amp;#38;quot&amp;#59;4000000&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            archiveFileName&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;environment&amp;#58;variable&amp;#61;MYAPP_HOME_FOLDER&amp;#125;&amp;#92;log&amp;#92;Archives&amp;#92;MyLog.&amp;#123;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#125;.log&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            maxArchiveFiles&amp;#61;&amp;#38;quot&amp;#59;250&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            concurrentWrites&amp;#61;&amp;#38;quot&amp;#59;true&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            openFileCacheSize&amp;#61;&amp;#38;quot&amp;#59;5&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;      &amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Duplicate&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 18:01:57 GMT</pubDate><guid isPermaLink="false">Closed Issue: I'm using longdate, but sometimes dates are in local time instead of UTC [2709] 20121007060157P</guid></item><item><title>Closed Issue: Problem with Target FormControl [2708]</title><link>http://nlog.codeplex.com/workitem/2708</link><description>&amp;#60;p&amp;#62;Reported in the forum at post&amp;#58; http&amp;#58;&amp;#47;&amp;#47;nlog-project.org&amp;#47;forum.html&amp;#35;nabble-tc1685764&amp;#124;a1685764&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hi,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;i have a little problem with the target FormControl. I wrote a NLog.config with 3 targets &amp;#40; File, Debugger, FormControl &amp;#41;. The logger writes successfull all messages to the targets File and Debugger, the FormControl target is ignored by the logger. I attached my config, and the internal Nlog log.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;The FormControl is a ToolStripStatusLabel Control.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I hope somebody have an idea, thx.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;NLog.config&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;nlog.log&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Moved to https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;NLog&amp;#47;NLog&amp;#47;issues&amp;#47;147&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 18:01:42 GMT</pubDate><guid isPermaLink="false">Closed Issue: Problem with Target FormControl [2708] 20121007060142P</guid></item><item><title>Closed Issue: Problem using the log4jxmlevent layout [2705]</title><link>http://nlog.codeplex.com/workitem/2705</link><description>&amp;#60;p&amp;#62;Reported in the forum at post&amp;#58; http&amp;#58;&amp;#47;&amp;#47;nlog-project.org&amp;#47;forum.html&amp;#35;nabble-tc1685658&amp;#124;a1685658&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hi All,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;m using the log4jxmlevent layout on a file target. And I&amp;#38;&amp;#35;39&amp;#59;ve set the includeSourceInfo&amp;#61;true.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;The output that I&amp;#38;&amp;#35;39&amp;#59;m getting in the log file is missing some data. NLog does not close the log4j&amp;#58;event xml tag.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;ve set the nlog throwExceptions and the internalLogFile and I get an exception&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Warn Exception in NLog.LayoutRenderers.Log4JXmlEventLayoutRenderer.Append&amp;#40;&amp;#41;&amp;#58; System.NullReferenceException&amp;#58; Object reference not set to an iinstance of an object.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;at NLog.LayoutRenderers.Log4JXmlEventLayoutRenderer.Append&amp;#40;StringBuilder builder, LogEventInfo logEvent&amp;#41; in E&amp;#58;&amp;#92;My Programs&amp;#92;NLog&amp;#92;NLog&amp;#92;src&amp;#92;LayoutRenderers&amp;#92;Log4JXmlEvent.cs&amp;#58;line 194&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;at NLog.Layout.GetFormattedMessage&amp;#40;LogEventInfo logEvent&amp;#41; in E&amp;#58;&amp;#92;My Programs&amp;#92;NLog&amp;#92;NLog&amp;#92;src&amp;#92;NLog&amp;#92;Layout.cs&amp;#58;line 142&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I managed to set a breakpoint in Append&amp;#40;&amp;#41; method at line 194 and it seems that it&amp;#38;&amp;#35;39&amp;#59;s looking for UserStackTrace in logEvent which returns null.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hope this helps to solve the problem.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Dan&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Moved to https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;NLog&amp;#47;NLog&amp;#47;issues&amp;#47;146&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 17:59:58 GMT</pubDate><guid isPermaLink="false">Closed Issue: Problem using the log4jxmlevent layout [2705] 20121007055958P</guid></item><item><title>Closed Issue: Custom csv layout doesn't work in nlog 2.0 release [6476]</title><link>http://nlog.codeplex.com/workitem/6476</link><description>&amp;#60;p&amp;#62;use of config&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;&amp;#63;xml version&amp;#61;&amp;#38;quot&amp;#59;1.0&amp;#38;quot&amp;#59; encoding&amp;#61;&amp;#38;quot&amp;#59;utf-8&amp;#38;quot&amp;#59; &amp;#63;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;nlog xmlns&amp;#61;&amp;#38;quot&amp;#59;http&amp;#58;&amp;#47;&amp;#47;www.nlog-project.org&amp;#47;schemas&amp;#47;NLog.xsd&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;      xmlns&amp;#58;xsi&amp;#61;&amp;#38;quot&amp;#59;http&amp;#58;&amp;#47;&amp;#47;www.w3.org&amp;#47;2001&amp;#47;XMLSchema-instance&amp;#38;quot&amp;#59;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#33;-- make sure to set &amp;#38;&amp;#35;39&amp;#59;Copy To Output Directory&amp;#38;&amp;#35;39&amp;#59; option for this file --&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#33;-- go to http&amp;#58;&amp;#47;&amp;#47;nlog-project.org&amp;#47;wiki&amp;#47;Configuration_file for more information --&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;targets&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#38;lt&amp;#59;target name&amp;#61;&amp;#38;quot&amp;#59;logfile&amp;#38;quot&amp;#59; xsi&amp;#58;type&amp;#61;&amp;#38;quot&amp;#59;File&amp;#38;quot&amp;#59; fileName&amp;#61;&amp;#38;quot&amp;#59;file.txt&amp;#38;quot&amp;#59;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;      &amp;#38;lt&amp;#59;layout xsi&amp;#58;type&amp;#61;&amp;#38;quot&amp;#59;CsvLayout&amp;#38;quot&amp;#59;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;&amp;#33;-- CSV Options --&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;quoting&amp;#38;gt&amp;#59;All&amp;#38;lt&amp;#59;&amp;#47;quoting&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;quoteChar&amp;#38;gt&amp;#59;&amp;#38;quot&amp;#59;&amp;#38;lt&amp;#59;&amp;#47;quoteChar&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;withHeader&amp;#38;gt&amp;#59;true&amp;#38;lt&amp;#59;&amp;#47;withHeader&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;delimiter&amp;#38;gt&amp;#59;Comma&amp;#38;lt&amp;#59;&amp;#47;delimiter&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;column layout&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;event-context&amp;#58;item&amp;#61;col1&amp;#125;&amp;#38;quot&amp;#59; name&amp;#61;&amp;#38;quot&amp;#59;column1&amp;#38;quot&amp;#59;&amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;column layout&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;event-context&amp;#58;item&amp;#61;col2&amp;#125;&amp;#38;quot&amp;#59; name&amp;#61;&amp;#38;quot&amp;#59;column2&amp;#38;quot&amp;#59;&amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#38;lt&amp;#59;column layout&amp;#61;&amp;#38;quot&amp;#59;&amp;#36;&amp;#123;processtime&amp;#125;&amp;#38;quot&amp;#59; name&amp;#61;&amp;#38;quot&amp;#59;column3&amp;#38;quot&amp;#59;&amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;      &amp;#38;lt&amp;#59;&amp;#47;layout&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#38;lt&amp;#59;&amp;#47;target&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#47;targets&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;rules&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#38;lt&amp;#59;logger name&amp;#61;&amp;#38;quot&amp;#59;&amp;#42;&amp;#38;quot&amp;#59; minlevel&amp;#61;&amp;#38;quot&amp;#59;Info&amp;#38;quot&amp;#59; writeTo&amp;#61;&amp;#38;quot&amp;#59;logfile&amp;#38;quot&amp;#59; &amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#47;rules&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;&amp;#47;nlog&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;and code&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     Logger logger &amp;#61; LogManager.GetCurrentClassLogger&amp;#40;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     LogEventInfo myEvent &amp;#61; new LogEventInfo&amp;#40;LogLevel.Info, &amp;#38;quot&amp;#59;&amp;#38;quot&amp;#59;, &amp;#38;quot&amp;#59;My debug message&amp;#38;quot&amp;#59;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     myEvent.Properties&amp;#91;&amp;#38;quot&amp;#59;col1&amp;#38;quot&amp;#59;&amp;#93;&amp;#61;&amp;#38;quot&amp;#59;column1 info&amp;#38;quot&amp;#59;&amp;#59; &amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     myEvent.Properties&amp;#91;&amp;#38;quot&amp;#59;col2&amp;#38;quot&amp;#59;&amp;#93; &amp;#61; &amp;#38;quot&amp;#59;column2 info&amp;#38;quot&amp;#59;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     logger.Info&amp;#40;myEvent&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;results in &amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;column1&amp;#38;quot&amp;#59;,&amp;#38;quot&amp;#59;column2&amp;#38;quot&amp;#59;,&amp;#38;quot&amp;#59;column3&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;&amp;#38;quot&amp;#59;,&amp;#38;quot&amp;#59;&amp;#38;quot&amp;#59;,&amp;#38;quot&amp;#59;00&amp;#58;00&amp;#58;00.0000&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I suspect it&amp;#38;&amp;#35;39&amp;#59;s a bug in passing LogEventInfo to a target &amp;#40;when wrapping it in another LogEventInfo&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;See comment&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 17:59:19 GMT</pubDate><guid isPermaLink="false">Closed Issue: Custom csv layout doesn't work in nlog 2.0 release [6476] 20121007055919P</guid></item><item><title>Closed Issue: Error while using NLog under mono [6462]</title><link>http://nlog.codeplex.com/workitem/6462</link><description>&amp;#60;p&amp;#62;Hi,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I hope that I did not created twice.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;I want to use mono and NLog under OpenSuse.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;First I have created a litle consol application to test NLog.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    class Program&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        private static Logger logger &amp;#61; LogManager.GetCurrentClassLogger&amp;#40;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        static void Main&amp;#40;string&amp;#91;&amp;#93; args&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;            logger.Debug&amp;#40;&amp;#38;quot&amp;#59;Test&amp;#38;quot&amp;#59;&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;        &amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;NLog_config file&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;&amp;#63;xml version&amp;#61;&amp;#38;quot&amp;#59;1.0&amp;#38;quot&amp;#59; encoding&amp;#61;&amp;#38;quot&amp;#59;utf-8&amp;#38;quot&amp;#59; &amp;#63;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;nlog xmlns&amp;#61;&amp;#38;quot&amp;#59;http&amp;#58;&amp;#47;&amp;#47;www.nlog-project.org&amp;#47;schemas&amp;#47;NLog.xsd&amp;#38;quot&amp;#59; xmlns&amp;#58;xsi&amp;#61;&amp;#38;quot&amp;#59;http&amp;#58;&amp;#47;&amp;#47;www.w3.org&amp;#47;2001&amp;#47;XMLSchema-instance&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#9;internalLogFile&amp;#61;&amp;#38;quot&amp;#59;&amp;#47;media&amp;#47;log&amp;#47;Nlog_error.log&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#9;internalLogLevel&amp;#61;&amp;#38;quot&amp;#59;Trace&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#9;autoReload&amp;#61;&amp;#38;quot&amp;#59;true&amp;#38;quot&amp;#59;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;targets&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#38;lt&amp;#59;target name&amp;#61;&amp;#38;quot&amp;#59;OtherLog&amp;#38;quot&amp;#59; xsi&amp;#58;type&amp;#61;&amp;#38;quot&amp;#59;File&amp;#38;quot&amp;#59; fileName&amp;#61;&amp;#38;quot&amp;#59;&amp;#47;media&amp;#47;log&amp;#47;Other.log&amp;#38;quot&amp;#59; &amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#47;targets&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;rules&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;    &amp;#38;lt&amp;#59;logger name&amp;#61;&amp;#38;quot&amp;#59;&amp;#42;&amp;#38;quot&amp;#59; minlevel&amp;#61;&amp;#38;quot&amp;#59;Trace&amp;#38;quot&amp;#59; writeTo&amp;#61;&amp;#38;quot&amp;#59;OtherLog&amp;#38;quot&amp;#59; &amp;#47;&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  &amp;#38;lt&amp;#59;&amp;#47;rules&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;lt&amp;#59;&amp;#47;nlog&amp;#38;gt&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;RESULT&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.Runtime.Serialization.DataContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a00042a&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.Runtime.Serialization.DataContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a00042a&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.Runtime.Serialization.CollectionDataContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000434&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Missing method .ctor in assembly &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll, type System.ServiceModel.ServiceContractAttribute&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Can&amp;#38;&amp;#35;39&amp;#59;t find custom attr constructor image&amp;#58; &amp;#47;media&amp;#47;Debug&amp;#47;NLog.dll mtoken&amp;#58; 0x0a000428&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Unhandled Exception&amp;#58; System.TypeInitializationException&amp;#58; An exception was thrown by the type initializer for TestNlog.Program ---&amp;#38;gt&amp;#59; NLog.NLogConfigurationException&amp;#58; Exception occurred when loading configuration from &amp;#47;media&amp;#47;Debug&amp;#47;NLog.config ---&amp;#38;gt&amp;#59; System.ArgumentException&amp;#58; Target cannot be found&amp;#58; &amp;#38;&amp;#35;39&amp;#59;File&amp;#38;&amp;#35;39&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.Factory&amp;#96;2&amp;#91;NLog.Targets.Target,NLog.Targets.TargetAttribute&amp;#93;.CreateInstance &amp;#40;System.String name&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration.ParseTargetsElement &amp;#40;NLog.Config.NLogXmlElement targetsElement&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration.ParseNLogElement &amp;#40;NLog.Config.NLogXmlElement nlogElement, System.String baseDirectory&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration.ParseTopLevel &amp;#40;NLog.Config.NLogXmlElement content, System.String baseDirectory&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration.Initialize &amp;#40;System.Xml.XmlReader reader, System.String fileName, Boolean ignoreErrors&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  --- End of inner exception stack trace ---&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration.Initialize &amp;#40;System.Xml.XmlReader reader, System.String fileName, Boolean ignoreErrors&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.Config.XmlLoggingConfiguration..ctor &amp;#40;System.String fileName&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.LogFactory.get_Configuration &amp;#40;&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.LogFactory.GetLogger &amp;#40;NLog.LoggerCacheKey cacheKey&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.LogFactory.GetLogger &amp;#40;System.String name&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at NLog.LogManager.GetCurrentClassLogger &amp;#40;&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  at TestNlog.Program..cctor &amp;#40;&amp;#41; &amp;#91;0x00000&amp;#93; in &amp;#38;lt&amp;#59;filename unknown&amp;#38;gt&amp;#59;&amp;#58;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;  --- End of inner exception stack trace ---&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;The same application works under mono 2.8 event if it never finish.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Could you help me please.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;See comment&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 17:58:58 GMT</pubDate><guid isPermaLink="false">Closed Issue: Error while using NLog under mono [6462] 20121007055858P</guid></item><item><title>Closed Issue: Tweak for Full Trust : variant of No Log File, SecurityException, Partial Trust [6400]</title><link>http://nlog.codeplex.com/workitem/6400</link><description>&amp;#60;p&amp;#62;The issue of SecurityException, while using in partial trust environment - web application, is raised at two points.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;To resolve the Partial Trust error, modify the AssemblyCofig.cs file of NLog project and add following&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;Code&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#47;&amp;#47;System.Security.SecurityException&amp;#58; That assembly does not allow partially trusted callers.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;assembly&amp;#58; System.Security.AllowPartiallyTrustedCallers&amp;#40;&amp;#41;&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;&amp;#47;Code&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Also make sure the project properties has the Signature assigned.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;After doing the above workaround, you will face following issues, that causes no file issue, securityexception etc. &amp;#91;The issue of not supporting Partial Trust is known issue and noted in release note.&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;1&amp;#93; while accessing the nlog.config &amp;#58; XmlLoggingConfiguration.AppConfig &amp;#58; access to System.Configuration.ConfigurationManager&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Work around &amp;#58; use web.config&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;2&amp;#93; while loading configuration from web.config and creating a FileSystemWatcher internally.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Work around following code change&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;File&amp;#58; LogFactory.cs&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Line 164 &amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;Code&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;if &amp;#40;this.config &amp;#33;&amp;#61; null&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     Dump&amp;#40;this.config&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     if &amp;#40;AppDomain.CurrentDomain.IsFullyTrusted&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     &amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;           this.watcher.Watch&amp;#40;this.config.FileNamesToWatch&amp;#41;&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;     &amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;&amp;#47;Code&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hope this helps team and community.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: &lt;p&gt;Moved to https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;NLog&amp;#47;NLog&amp;#47;issues&amp;#47;144&lt;/p&gt;</description><author>Xharze</author><pubDate>Sun, 07 Oct 2012 17:58:23 GMT</pubDate><guid isPermaLink="false">Closed Issue: Tweak for Full Trust : variant of No Log File, SecurityException, Partial Trust [6400] 20121007055823P</guid></item></channel></rss>