.net VerificationException配置StructureMap 3注册表

.net VerificationException配置StructureMap 3注册表,.net,.net-4.0,structuremap,structuremap3,verificationexception,.net,.net 4.0,Structuremap,Structuremap3,Verificationexception,在未修补的Windows 2012数据中心操作系统上,将工作应用程序从StructureMap 2.6.4.1更新为StructureMap 3.0.5.130后,我们从.NET 4.0上的ASP.NET MVC 4.0应用程序配置StructureMap注册表时出现以下异常: [VerificationException: Operation could destabilize the runtime.] StructureMap.Util.LightweightCache`2..ctor(I

在未修补的Windows 2012数据中心操作系统上,将工作应用程序从StructureMap 2.6.4.1更新为StructureMap 3.0.5.130后,我们从.NET 4.0上的ASP.NET MVC 4.0应用程序配置StructureMap注册表时出现以下异常:

[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

同样的应用程序在WindowsServer2008R2机器上运行良好。显然,这是某种配置问题,可能是Windows Update问题,但是有人知道要运行哪个Windows或.NET Update吗?我们无法关闭这台机器,我需要了解缺少的依赖项。

这是在生产中还是在您的开发机器?生产中发生的。基于此,我可能需要安装.NET4.5,即使我运行的是.NET4.0。