Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Resolution of the dependency failed, type = "StudentManagement.IBusiness.ILoggManager", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, StudentManagement.IBusiness.ILoggManager, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was:

Resolving StudentManagement.IBusiness.ILoggManager,(none)

Any solution to this??
I have provided mapping as and all other mappings are working.

container.RegisterType<iloggmanager,>();
Posted

1 solution

Interfaces cannot be instantiated. You have to specify a class as the generic type, see also http://msdn.microsoft.com/en-us/library/ff648211.aspx[^]
 
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