The ASP.NET MVC application after deploying to Hosting environment (Windows server 2008 R2, IIS7) works as expected - until the IIS application pool is recycled. The IIS administrator has configured application pool to be recycled at regualr intervals.
After application pool recycles the application returns the following error.
"The Icontrollerfactory did not return a controller for the name"
The routes are initialized in Application start event in Global.asax.
The full exception is "The IControllerFactory "Controllers.ControllerFactory" did not return a controller for the name "ProductStatus".
The stack trace says
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)