在WindsorContainer构建期间是什么导致MethodAccessException?

问题描述 投票:0回答:1

在构造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.2Castle.Windsor 3.3.0

在WindsorContainer的构建过程中,什么导致MethodAccessException? System.MethodAccessException:尝试通过方法'Castle.MicroKernel.SubSystems.Configuration.DefaultConfigurationStore..ctor(...

castle-windsor-3
1个回答
0
投票

看起来像是因为我试图将Castle.Windsor 3.3.0与Castle.Core.4.4.0一起使用。这将导致issues

© www.soinside.com 2019 - 2024. All rights reserved.