1

在未修补的 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

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

4

0 回答 0