Encountered VerificationException "Operation could destabilize runtime" error using MsgPack to serialize some F# types. The compiler also suggests that conflicting class libraries may be loaded, but this appears to be a red herring.
It's not immediately clear what the error is caused by, so posting the solution below for community benefit.
In response to Comments below:
....Sammo\bin\Debug>peverify /verbose Sammo.exe
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.17929
Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in Sammo.exe Verified.
....Sammo\bin\Debug>Sammo.exe
Unhandled Exception: System.Security.VerificationException: Operation could destabilize the runtime.
at _4(MsgPackReader )
at _3(MsgPackReader )
at MsgPack.CompiledPacker.Unpack[T](Stream strm)
at MsgPack.CompiledPacker.Unpack[T](Byte[] buf, Int32 offset, Int32 size)
at MsgPack.CompiledPacker.Unpack[T](Byte[] buf)
at <StartupCode$Sammo>.$Program.main@() in ....\Sammo\Pro
gram.fs:line 67
....\Sammo\bin\Debug>