Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
"None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'WebShopDesigns.Web.Controllers.CatalogController' can be invoked with the available services and parameters:"
Cannot resolve parameters.

Hi I am getting above error when I try to add parameters in constuctor in Controller.

Pleas any one can help

Thanks in Advance.
Posted
Updated 16-Nov-13 0:44am
v2
Comments
Sampath Lokuge 16-Nov-13 6:46am    
Can you put your code which it generates error ?
Zoltán Zörgő 16-Nov-13 6:47am    
And why do you think we know what Autofac.Core.Activators.Reflection.DefaultConstructorFinder does exactly and what constructors WebShopDesigns.Web.Controllers.CatalogController has?
Remember: we can't see your screen, can't read your hdd - neither your mind.
So please provide much more information...

1 solution

Try and add StructureMap from nuget package into your project.Hope it helps.and do get some idea about Dependency Injection and Inversion of Control(IoC)

Thank you
Happy Coding
Enjoy SD's :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900