Last post Mar 12, 2018 08:23 AM by nideeshm
Feb 22, 2018 09:47 AM|Jesper Petersen|LINK
That's the way I've added what has been made in this article, it makes me mistake every time I try to run the website.
i have make this here:
System.ArgumentException: 'Cannot instantiate implementation type 'XXXXXX.HelperClass.ViewRenderService' for service type 'XXXXXX.HelperClass.IViewRenderService'.'
Every time I try to drive it, there are errors here.
public static IWebHost BuildWebHost(string args) =>
But in my ConfigureService there I have added my opportunity to send email to the customer / user
What can I do to prevent this error from coming back?
Feb 23, 2018 06:14 AM|Edward Z|LINK
I make a test by following the link, it works correctly.
Could you share us your simple project which could reproduce your issue through OneDrive?
Mar 12, 2018 08:23 AM|nideeshm|LINK
ViewRenderService constructor has three interfaces as parameters. I am guessing atleast one interface is undefined. That is why you are getting the error. Can you post the full error stack trace. Try adding all the namespaces available in the link in your
project's startup.cs. It will help if you have missed any references.