gpt4 book ai didi

caSTLe-windsor-3 - 在 WindsorContainer 的构建过程中是什么导致了 MethodAccessException?

转载 作者:行者123 更新时间:2023-12-04 10:30:39 24 4
gpt4 key购买 nike

在构造 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

最佳答案

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

关于caSTLe-windsor-3 - 在 WindsorContainer 的构建过程中是什么导致了 MethodAccessException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60441258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com