Operation could destabilize the runtime in StructureMap

There is a .Net update that fixes this issue. KnowledgeBase 2748645

When you use some third-party controls, you may receive a System.Security.VerificationException exception. This issue occurs if the following conditions are true:

The third-party controls use the generic types.

The CLR verifier is enabled by declaring an assembly that is marked as security-transparent.

The issue is described in more detail in this blog post.

The problem exists on the IL level and is only detected when the CLR Verifier is executed on the code. The verifier makes sure that the IL is type safe before it’s sent to the JIT Compiler and if it detects and issue (like this) it will bark at you.