2

WindsorContainer 构建过程中出现 MethodAccessException 的原因是什么?

System.MethodAccessException: Attempt by method 'Castle.MicroKernel.SubSystems.Configuration.DefaultConfigurationStore..ctor()' to access method 'System.Collections.Generic.Dictionary`2<System.__Canon,System.__Canon>..ctor()' failed. at Castle.MicroKernel.SubSystems.Configuration.DefaultConfigurationStore..ctor() at Castle.MicroKernel.DefaultKernel.RegisterSubSystems() at Castle.MicroKernel.DefaultKernel..ctor(IDependencyResolver resolver, IProxyFactory proxyFactory) at Castle.MicroKernel.DefaultKernel..ctor() at Castle.Windsor.WindsorContainer..ctor()

.NET 4.7.2 城堡.温莎 3.3.0

4

1 回答 1

2

看起来这是因为我试图将 Castle.Windsor 3.3.0 与 Castle.Core.4.4.0 一起使用。这会引起问题

于 2020-02-27T20:26:38.933 回答