Hi all , I am facing the issue which is I created a new Service class in Service solution and Controller class in Admin solution. In the Controller class constructor as below:
public NewController( //this is Constructor Controller class IPermissionService permissionService, IPictureService pictureService ,INewImagePictureService newImagePictureService //The new service ) { _permissionService = permissionService; _pictureService = pictureService; _newImagePictureService = newImagePictureService; }
After run in the web, the error has been occurred:
None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'SmartStore.Admin.Controllers.NewController' can be invoked with the available services and parameters:
Cannot resolve parameter 'SmartStore.Services.Common.INewImagePictureService newImagePictureService' of constructor 'Void .ctor(SmartStore.Services.Security.IPermissionService, SmartStore.Services.Media.IPictureService, SmartStore.Services.Common.INewImagePictureService)'.
Anyone can help??
thanks