Reputation: 1723
I'm researching how much of the solution I have for Windows can be simply transplanted to Linux. Most of my actual program can operate, but our favourite logging module on Windows is NLog.
I'm having a problem on openSuse. When NLog starts (i.e. valid configuration is found), the program fails with several errors of the form:
Can't find custom attr constructor image: /share/MonoSIMON/MonoTestConsumer/NLog.dll mtoken: 0x0a000358
The error appears 9 times with NLog 3.2.0.0.
Initially I was running with a newer NLog V4.3.1.0, and the result is the same although there are around 15 copies of the error instead.
I'm not compiling Mono or anything, it's all as standard packages. I'm targeting Framework 4.5, it's a Console App, and I'm really not doing anything special.
Is it possible to run with NLog on openSuse.
Thanks for any help.
Mark
Upvotes: 1
Views: 1046
Reputation: 1723
I eventually worked this out. Julian pointed me back in the direction of the NLog issues board, but that package name doesn't work on openSuse 42.1.
A search on www.rpmfind.net shows that the system.service model assembly is actually in the openSuse 'mono-wcf' package.
zypper install mono-wcf
Fixes the NLog problem.
Cheers.
Upvotes: 1