0

尝试使用工厂实例化组件时出现此异常。

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 方法返回实例)。它喜欢某些依赖组件未注册导致此异常。所以我尝试查看容器中安装的所有组件和服务,但不知道该怎么做。是否有任何程序可以列出容器中注册的所有服务/组件

4

1 回答 1

1

您可以通过调试器视图来完成

于 2013-02-13T10:38:06.083 回答