سؤال

I got this exception when tried to instantiate a component using factory.

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?

component is registered in the container ( as it is returns the instance using resolve method). it likes some dependency component is not register which causes this exception. so i tried look at all the component and service installed in container but don't know how to do that. is there any procedure which will list out all the service/components registered in the container

هل كانت مفيدة؟

المحلول

You can do it via debugger views

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top