VerificationException configuring StructureMap 3 Registry

336 Views Asked by At

After updating our working application from StructureMap 2.6.4.1 to StructureMap 3.0.5.130 on an unpatched Windows 2012 Data Center OS, we get the following exception configuring the StructureMap registry from a ASP.NET MVC 4.0 app on .NET 4.0:

[VerificationException: Operation could destabilize the runtime.]
StructureMap.Util.LightweightCache`2..ctor(IDictionary`2 dictionary) +0
StructureMap.Graph.PluginGraph..ctor() +225
StructureMap.PluginGraphBuilder..ctor() +80
StructureMap.ConfigurationExpression..ctor() +26
StructureMap.PipelineGraph.For(Action`1 action) +26
EnhancementQueue.DependencyResolution.IoC.Initialize() +82
EnhancementQueue.App_Start.StructuremapMvc.Start() +11

The same app works fine on a Windows Server 2008 R2 machine. Obviously, it is some kind of configuration issue, probably a Windows Update issue, but does anyone know which Windows or .NET update to run? We can't take this machine down and I need to understand the missing dependency.

0

There are 0 best solutions below