Im following this tutorial to create a basic plugin, http://docs.nopcommerce.com/pages/viewpage.action?pageId=40304642
I see my plugin on plugins list, but when i install it, it gives me the Exception:
"No constructor was found that had all the dependencies satisfied."
Im new in NopCommerce development, and i've searched about this error, but nothing seems to be related to what im using. I have a Controller, with a Configure method, a constructor, a Model and a View.
I saw how to add a Dependency Registrar class, but on the video it says only how to register classes of Service or Data Access.. I don't have such classes, just the View, Controller and Model
One of your class cannot be instantiated by Autofac, did you have your custom class, and forgot to register in dependency registrar?
.
hello,
Yes wooncherk is right. i am also facing same issue few days ago.
After i found that one third party dll occur this issue.
lucasipag wrote:
I saw how to add a Dependency Registrar class, but on the video it says only how to register classes of Service or Data Access.. I don't have such classes, just the View, Controller and Model
I added a DependencyRegistrar class loading my controllers and models the error changed to "Object reference not set to an instance of an object" Then, I removed the class, cleaned the project and builded it again, but this error now persists...
I added a DependencyRegistrar class loading my controllers and models the error changed to "Object reference not set to an instance of an object" Then, I removed the class, cleaned the project and builded it again, but this error now persists...
So where is the error occurring? I.e. what does the stack trace say? Set a breakpoint there and debug it :)