Hi @Muhammad Nabeel Iqbal
Your VirtualAssistantsController should be changed like below. Then the VirtualAssistantsController will be successfully initialized and the services can be injected into the Controller.
public class VirtualAssistantsController : Controller
private readonly ILogger<VirtualAssistantsController> _logger;
private readonly WebUserService _webUserService;
private readonly AllControllerServices _services;
private readonly AccountService _accountService;
public HomeController(ILogger<VirtualAssistantsController> logger, WebUserService webUserService, AllControllerServices services, AccountService accountService)
_logger = logger;
_webUserService = webUserService;
_services = services;
_accountService = accountService;
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.