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 Castle.Windsor 3.3.0

4

1 に答える 1

2

これは、Castle.Core.4.4.0 で Castle.Windsor 3.3.0 を使用しようとしていたためのようです。これにより問題が発生します。

于 2020-02-27T20:26:38.933 に答える