I have an app, written in C# on Windows, but recompiled on Ubuntu 12.04 (32 bit), and running, issue free, in production, on Ubuntu 12.04 (64 bit).
I am using Mono 2.10.8.1, recompiled from source (as I needed to remove the Windows 64 WaitHandle maximum limitation, but that's a different story).
My problem is that, whilst it runs happily in 12.04 (service run by mono-service, hosted in supervisor) I am receiving the following Exception, when the service tries to start, on Ubuntu 14.04 (we are moving to a cloud hosted Linux instance, rather than locally hosting)
TypeInitializationException: An exception was throw$
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall..cctor () [0x00000] in <filename unknown>:0\
(there is, apparently, an InnerException, but that's also a TypeInitializationException)
Apart from the release, the only other difference between the two installations (working 12.04 production, and not working 14.04 potential production) is that on 12.04 my binaries are in
~/theserviceimrunning/
whereas on the new box it's in
/opt/theserviceimrunning/
I wouldn't think there would be a difference between release, especially as I am using the same version of Mono, recompiled from tarball, but would this be an issue? If not, is there anything else I should be aware of?