Server Error in '/' Application.

The controller for path '/api/sitecore/HeaderLinks/SwitchLanguage' was not found or does not implement IController.

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: Sitecore.Mvc.Diagnostics.ExceptionWrapper: The controller for path '/api/sitecore/HeaderLinks/SwitchLanguage' was not found or does not implement IController.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ExceptionWrapper: The controller for path '/api/sitecore/HeaderLinks/SwitchLanguage' was not found or does not implement IController.]

[ControllerCreationException: Could not create controller: 'HeaderLinks'. 
The current route url is: 'api/sitecore/{controller}/{action}'. ]
   Sitecore.Mvc.Controllers.SitecoreControllerFactory.CreateController(RequestContext requestContext, String controllerName) +171
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +219
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +112
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +3375
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1401


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0