NLog is throwing an exception, which it shouldn't ever do. Looking at the source it seems to be part of the get stack trace code, even tho I don't think i'm using the stack trace renderer (i'm working to confirm that, though). Has anyone ever gotten this error in NLog? I'm at the point that I'm going to have to rip out NLog and put in log4net, and I REALLY don't want to have to do that.
This is the stack trace:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targets, LogEventInfo logEvent, LogFactory factory)
at NLog.Logger.WriteToTargets(LogLevel level, String message, Object[] args)
at NLog.Logger.Info(String message, Object argument)
at EmpathyLab.Util.Schema.Transform.TaskContainer.Run(DbConnectionHolder holder, Transformer transform) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\TaskContainer.cs:line 53
at EmpathyLab.Util.Schema.Transform.Target.Run(DbConnectionHolder holder, Transformer t) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Target.cs:line 26
at EmpathyLab.Util.Schema.Transform.Transformer.RunTarget(DbConnectionHolder db, String targetName, Boolean rerun) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Transformer.cs:line 62
at EmpathyLab.Util.Schema.Transform.Transformer.RunTargets(DbConnectionHolder db, String[] targetsToRun, Boolean rerun) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Transformer.cs:line 71
at EmpathyLab.Util.Schema.Transform.Target.Run(DbConnectionHolder holder, Transformer t) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Target.cs:line 26
at EmpathyLab.Util.Schema.Transform.Transformer.RunTarget(DbConnectionHolder db, String targetName, Boolean rerun) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Transformer.cs:line 62
at EmpathyLab.Util.Schema.Transform.Transformer.RunTarget(String targetName, Boolean rerun) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\EL.Util\Schema\Transform\Transformer.cs:line 40
at TBC.TK.Web.Global.Application_Start(Object sender, EventArgs e) in c:\TeamCity\buildAgent\work\304d4dce34ae1ec1\TBC.TK.Web\Global.asax.cs:line 106