Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, September 19, 2013 7:01 AM
Hi,
I am getting below error
Server Error in '/FrameworkServices' Application.
________________________________________
The current type, Mustang.Interception.IInterceptionProvider, is an interface and cannot be constructed. Are you missing a type mapping?
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The current type, Mustang.Interception.IInterceptionProvider, is an interface and cannot be constructed. Are you missing a type mapping?
Error occured at this code
IInterceptionProvider interceptionProvider = dependencyResolver.Resolve(typeof(IInterceptionProvider)) as IInterceptionProvider;
All replies (2)
Thursday, September 19, 2013 8:22 AM ✅Answered
You need to specify what object the interface should resolve. Depending on the DI you need to register the object for a type. Check this link.
Thursday, September 19, 2013 8:30 AM ✅Answered
Check out this answer