Service write in first plugin and I want to use it in second plugin.
in first plugin I'm not registered service in DependencyRegister because I'm not using it in first plugin.
In second plugin I'm registering it in dependency Register by
builder.RegisterType<MyService>().As<IMyService>().InstancePerLifetimeScope();
But it throwing below exception.
The requested service 'Nop.Plugin.Misc.MyPlugin.Service.MyService' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
Here is my service constructor
public partial class MyService: IMyService
{
private readonly HttpContextBase _httpContext;
public SolrWebHelper(HttpContextBase httpContext)
{
this._httpContext = httpContext;
}
}
Any Idea about this error?