Type load error with nlog

Sep 15, 2011 at 6:27 PM

When using nLog for logging, the cinch bootstrapper throws this loaderexception:

Could not load type 'NLog.TargetWithLayout' from assembly 'NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'.

Any idea what might be causing this? Logging works fine if I ignore the error.

Thanks

Sep 17, 2011 at 6:46 PM

No idea what that could be. The stuff in the Cinch bootstrapper is more for convenience anyway, if you look at its code, you could easily move those lines of code into your own loader and see what the issue really is.

Sep 21, 2011 at 12:13 PM

Do you have the same cpu target? Believe i got that error as i mixed the cpu targets 'x86' and 'any cpu' in different projects.

Sep 26, 2011 at 10:02 AM

It is worth trying what Helmut suggests