Components 列出容器中所有注册组件,温莎?

Components 列出容器中所有注册组件,温莎?,components,castle-windsor,containers,resolve,Components,Castle Windsor,Containers,Resolve,我在尝试使用工厂实例化组件时遇到此异常 Requested component named '<component_Name>' was not found in the container. Did you forget to register it? There is one other component supporting requested service '<service_Name>'. Is it what you were looking for?

我在尝试使用工厂实例化组件时遇到此异常

Requested component named '<component_Name>' was not found in the container. Did you forget to register it?

There is one other component supporting requested service '<service_Name>'. Is it what you were looking for?
在容器中找不到名为“”的请求组件。你忘记登记了吗? 还有一个组件支持请求的服务“”。这就是你要找的吗? 组件在容器中注册(因为它使用resolve方法返回实例)。它喜欢某些依赖项组件不是寄存器,这导致了此异常。所以我试着查看容器中安装的所有组件和服务,但不知道如何做到这一点。
是否有任何程序将列出容器中注册的所有服务/组件

您可以通过

执行此操作。无论如何,它有助于:),Tqx@rarous@X.L.Ant它怎么不回答这个问题呢?这是一个简洁、直截了当的回答,正好提供了所问的问题。如果这不是一个好答案,我不知道是什么。我没有写这条评论,也许是审查系统在我审查这个答案时为我写的(我不记得标记为“不是答案”,但我可能错了)。无论如何,这确实是一个答案。我将删除我的评论。很抱歉